RFC: support debug info in separate files

Eli Zaretskii eliz@is.elta.co.il
Tue Dec 10 12:43:00 GMT 2002


> From: Elena Zannoni <ezannoni@redhat.com>
> Date: Tue, 10 Dec 2002 00:00:47 -0500
> 
>  > +  strcat (debugfile, ".debug/");
> [...]
> 
>  > +  strcat (debugfile, "/");
> 
> [...]
>  > +  strcat (debugfile, "/");
> 
> Should these be DIR_SEPARATOR instead? I guess DJGPP doesn't care though.

Neither DJGPP nor any other DOS/Windows port of GDB should care, since
DOS and Windows system calls support both flavors of slashes alike.

In general, DIR_SEPARATOR should be used when testing characters to be
separators, but there's no need to do that when constructing file
names.



More information about the Gdb-patches mailing list