Date: Sun, 7 Jan 2001 13:58:35 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Tim Van Holder cc: djgpp-workers AT delorie DOT com Subject: RE: Backslashes in debug info In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.