Mail Archives: djgpp-workers/2001/01/07/05:24:52
On Sun, 7 Jan 2001, Tim Van Holder wrote:
> I'm pretty sure gdb currently handles this correctly
Don't be so sure: the problems are very subtle, and test cases that
expose them are very hard to cook.
GDB will DTRT when presented with file names in DOS format,
including with backslashes; that was fixed a long time ago (last
problems were corrected when GDB 4.18 was ported).
However, GDB modules such as symtab.c and minsyms.c have quite a few
literal '/'s in them, and some of these places are relevant to debug
formats supported by DJGPP, including stabs and dwarf2. That code
makes all kinds of decisions based on the file name (as opposed to just
passing the file name to some file-oriented library function). That
code was never made to understand backslashes because I always thought
(and continue to think) that the debug info cannot cope with backslashes
well, and that they are all replaced with forward slashes. (And with
COFF debugging this is a moot point, since the full path of a file is not
recorded at all.)
I'm sure that if you succeed to fall on one of the fragments where GDB
uses '/', you will see all kinds of breakage.
- Raw text -