RFC: example fix to pr 2360

Douglas Evans dje@google.com
Tue Nov 27 00:11:00 GMT 2007


On Nov 15, 2007 3:55 PM, Douglas Evans <dje@google.com> wrote:
> To make things more concrete to what I was refering to in
> http://sourceware.org/ml/gdb/2007-11/msg00138.html I've filed pr 2360,
> and attached is an example fix.
>
> I'm not sufficiently happy with it that I'd submit it RFA, but that's
> mostly because of perceived objections to the use of xfullpath.  Maybe
> the thing to do is write a canonicalizer like what is done in
> cli-cmds.c:cd_command (and presumably move it to a more generic
> place).
>
> Suggestions?

Ping.

One use case that xfullpath might not always handle properly is if the
binary is used
on a different host than it was compiled on and the path name doesn't exist.
In this case one would still want the path name canonicalized but
xfullpath won't work.

Is there anything I'm missing?

TIA



More information about the Gdb-patches mailing list