home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!col.hp.com!hpfcbig.sde.hp.com!mjs
- From: mjs@fc.hp.com (Marc Sabatella)
- Newsgroups: comp.sys.hp
- Subject: Re: debugging with stripped executables...
- Date: 7 Jan 1993 17:10:39 GMT
- Organization: Hewlett-Packard Company
- Lines: 36
- Message-ID: <1iho6fINNdai@hpfcbig.sde.hp.com>
- References: <1993Jan6.215650.16586@brtph560.bnr.ca>
- Reply-To: marc@hpmonk.fc.hp.com
- NNTP-Posting-Host: hptrane.fc.hp.com
- X-Newsreader: TIN [version 1.1.4 PL6]
-
- Chris Fulmer (chrisf@brtph316.NoSubdomain.NoDomain) wrote:
- :
- : Now, the symbol table is not dumped with the core file, so it
- : should be possible to just use the unstripped binary, and have
- : everything be hunky-dorey. Unforuently, it's not. We get messages
- : like "core cannot be the core file for XXXX; ignoring core". Not
- : much of a help.
-
- You're right, this should normally work. Are you sure it is really the same
- executable? That is, did you produce the executable with "-g" and then strip
- it, so that you really have stripped and unstripped versions of the same
- executable? Or did you perhaps produce two executables, one with "-g" and one
- without? The latter will not work; slightly different code may be generated
- with "-g" - in particular, /usr/lib/end.o will be linked into your program.
- And it won't even be close if the "stripped" executable was actually produced
- with "-O".
-
- : We're running (yikes) HP-UX 6.5. Any clues? Thanks.
-
- Was the core file also generated on 6.5? There have been changes in the core
- file format since then; core files generated on later releases might not be
- readable on 6.5 - although that would presumably lead to a different error
- message than what you are seeing.
-
- --
- Marc Sabatella
- marc@hpmonk.fc.hp.com
- --
- Amendment 2 Is Legalized Discrimination - Shame On You, Colorado
- --
- "Neither the State of Colorado ... nor any of its municipalities ... shall ...
- enforce any ... ordinance ... whereby homosexual, lesbian, or bisexual
- orientation ... shall ... be the basis of ... any ... claim of discrimination"
- --
- All opinions expressed herein are my personal ones
- and do not necessarily reflect those of HP or anyone else.
-