delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/01/07/07:00:17

Date: Sun, 7 Jan 2001 13:58:35 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Tim Van Holder <tim DOT van DOT holder AT pandora DOT be>
cc: djgpp-workers AT delorie DOT com
Subject: RE: Backslashes in debug info
In-Reply-To: <NEBBIOJNGMKPNOBKHCGHEEGECAAA.tim.van.holder@pandora.be>
Message-ID: <Pine.SUN.3.91.1010107134545.25836C-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 7 Jan 2001, Tim Van Holder wrote:

> > I don't think so: try "objdump -d" on the executable, and you will see
> > the same truncated file names.  So it might be a BFD thing (since GDB
> > uses BFD, at least to some extent).
> Actually, objdump -d only prints this:

Sorry, I goofed: it's either "objdump --debug" or "objdump -g".

> objdump -g, however, produces this:
> 
> == start of output
> h:\Tmp\Source\web2c-7.3.3\foo.o:     file format coff-go32
> 
> H:\Tmp\Source\web2c-7.3.3\foo.c:
> typedef void void;
> typedef int32 int;
> int _main ()
> { /* 0x0 */
>   /* file H:\Tmp\Source\web2c-7.3.3\foo.c line 4 addr 0x3 */
>   /* file H:\Tmp\Source\web2c-7.3.3\foo.c line 5 addr 0x7 */
> } /* 0xa */

Are you sure this is with -gcoff, not -gstabs?

> > > [GDB] br main
> > ??? "[GDB]" in brackets and in UPPER case?  Do you have some gdb.ini
> > file where you customize GDB's prompt?
> I do. I also have verbosity on (which probably explains the 'reading
> symbols' message, and have confirm set to off (which explains the =
> missing 'starting program' message).

Please try to turn these off when comparing with others (e.g., with
"gdb -nx").  It's very hard to make efficient comparisons when all
these subtleties distract the attention.

> If you want, I can get a recent snapshot, bring my patched tree up to
> date, and run a diff to see what exactly I changed.

Perhaps it is better for you to try this exercise with bnu210b.zip from 
SimTel.NET, which is the version I used.  If you get the same results I 
see with as.exe, ld.exe, and objdump.exe from that distribution, then we 
could take it from there.

> Which reminds me: what version of bfd was used to build the DJGPP
> version of gdb?

With the version that comes with the GNU GDB 5.0 distribution.  It should 
be a version of Binutils that was current around May 2000.

> If it's not the one from binutils 2.10 or later, that might explain it.

It's not 2.10, but I don't think this is the cause: I saw the truncated 
file names with objdump from Binutils 2.10.  So GDB is not the only one 
who sees them.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019