Article View: gnu.ghostscript.bug
Article #212map files and UNIX
From: Hal Peterson
Date: Tue, 25 Jul 1989 22:25
Date: Tue, 25 Jul 1989 22:25
74 lines
2511 bytes
2511 bytes
I am using GhostScript 1.3 with the patches supplied by Tony Li and
snoopy's fix to interp.c. My platform is an 8MB Sun 3/50 running
SunOS 3.5. I am compiling with GCC 1.35.
Tracing, at least as implemented in GhostScript, does not work in
UNIX, and the C compilers don't produce map files, so the function
tracing code in gsmain.c is irrelevant. This is an irritation because
every time I start up GhostScript I get the message
Unable to find _main in map file
which is confusing. So I got rid of it by conditionally compiling the
map file code for __MSDOS__.
--
Hal Peterson Domain: hrp@cray.com
Cray Research Old style: hrp%cray.com@uc.msc.umn.edu
1440 Northland Dr. UUCP: uunet!cray!hrp
Mendota Hts, MN 55120 USA Telephone: +1 612 681 3145
========================================================================
*** gsmain-DIST.c Wed Jul 5 17:41:42 1989
--- gsmain.c Tue Jul 25 17:18:35 1989
***************
*** 57,62 ****
--- 57,63 ----
#ifdef DEBUG
/* Reset debugging flags */
memset(gs_debug, 0, 128);
+ #ifdef __MSDOS__
/* Open the map file and look up 'main' */
mapf = fopen(map_name, "rt");
if ( mapf == NULL )
***************
*** 72,77 ****
--- 73,79 ----
}
}
#endif
+ #endif
/* Initialize the proper device */
{ extern gx_device *gp_default_device_p;
extern gx_device *gx_device_default_p;
***************
*** 119,124 ****
--- 121,127 ----
break;
case 'T':
#ifdef DEBUG
+ #ifdef __MSDOS__
if ( mapf != NULL )
{ char *delim;
char *tname;
***************
*** 138,145 ****
trace_flush_flag = 1;
}
#else
printf("Not a debugging configuration, -T switch ignored\n");
! #endif
break;
}
}
--- 141,151 ----
trace_flush_flag = 1;
}
#else
+ printf("Tracing doesn't work on this system, -T switch ignored.\n");
+ #endif /* defined(__MSDOS__) */
+ #else
printf("Not a debugging configuration, -T switch ignored\n");
! #endif /* defined(DEBUG) */
break;
}
}
Technical Details
Message-ID:
<8907252225.AA14625@rothko.cray.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mailrus!tut.cis.ohio-state.edu!boring.cray.com!hrpShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mailrus!tut.cis.ohio-state.edu!boring.cray.com!hrp From: hrp@boring.cray.com (Hal Peterson) Newsgroups: gnu.ghostscript.bug Subject: map files and UNIX Message-ID: <8907252225.AA14625@rothko.cray.com> Date: 25 Jul 89 22:25:44 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 74