This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Fix problems related to Mingw/DJGPP file names containing colons
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 12 Aug 2011 20:17:20 +0300
- Subject: Re: [RFC] Fix problems related to Mingw/DJGPP file names containing colons
- References: <004901cc5907$85006320$8f012960$%muller@ics-cnrs.unistra.fr>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
> Date: Fri, 12 Aug 2011 17:50:11 +0200
>
> Using current CVS source,
> I am unable to handle files having Dos style
> directory specifications inside the stabs debugging information
> (but I don't think that this is stabs specific).
> Release 7.3 has the same problem...
>
> The program test.exe below has been compiled with Free Pascal
> for win32 target (more or less mingw).
> When I try to insert a break point at a line of current file,
> the addr_string computed is "e:/pas/trunk/fpcsrc/ide/test.pas:166".
> But locate_first_half function stops at the first colon
> and GDB complains because file "e" is not found.
>
> I first tried to add double-quotes around the file name,
> but this was not enough... I suspect that the other changes
> below that I had to add are just errors in the current implementation...
> See below for submitted patch.
>
> Nevertheless, this implementation will probably fail miserably for
> file names containing double-quotes, not sure if this is allowed
> on some OS's or FileSystems...
>
> Comments most welcome
Thanks for working on this, but I don't like the idea of quoting file
names internally just to work around this problem. I think we need to
teach linespec about DOS-style file names instead.