gdb_realpath: dealing with ./ and ../

Doug Evans dje@google.com
Fri Jan 4 21:40:00 GMT 2008


The use of #line in the testcases in the appended patch is
questionable, but as a data point the testcases fail without the patch
and pass with the patch.  These versions of the testcases have been
amended to use substitute-path.

ref: pr 2360
http://sourceware.org/ml/gdb/2007-11/msg00138.html
http://sourceware.org/ml/gdb-patches/2007-11/msg00314.html

Maybe #line + substitute-path fixup isn't supported.
Again, this patch is just a data point.

Note: This patch contains the rewrite_subfile_path suggestion of my
previous email.  I don't know whether it helps or hurts the case
you're trying to fix.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rewrite-path-3.patch
Type: text/x-patch
Size: 12986 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20080104/a15ea601/attachment.bin>


More information about the Gdb mailing list