Re: [RFC] gdb_realpath causes problems with GVD

Eli Zaretskii
2002-03-20T11:12:06Z

On Wed, 20 Mar 2002, Joel Brobecker wrote:

> I have a sad news: filename
> completion does not work in the case you mentionned, but this issue is
> not related to my change. I tried with an unmodified GDB, and got the
> same behavior.

What version of GDB was that, and what debug info format does your
compiler use?

> I also tried without a simple example without any
> symbolic link, and it did not work either. It only completes if we enter
> the filename without the directory prefix, with and without my change.

This certainly works for me, at least in GDB 5.1.1 with stabs and DWARF2
debug info. It doesn't work with COFF debug info, but that's because
COFF doesn't record the leading directories, only the basename.

Running "objdump --debugging" on the executable should show whether full
file names with leading directories are recorded or not.

> Shall I go ahead and implement Andrew's suggestions?

I don't have anything against Andrew's suggestions, but they only change
minor (although important) clerical details.

I don't call the shots in this matter, but I'd certainly hate to lose the
file-name completion due to this patch. My suggestion would be to find
a version of GDB where completion does work, and then see whether your
changes have any adverse effect on it, before making the decision
whether to accept the patch.