Re: [RFC] gdb_realpath causes problems with GVD

Joel Brobecker
2002-03-21T08:11:48Z

> gdb tells GVD that the file is "/bonn.a/brobecke/symlinks/toto.C".
> Why does GVD then use just the base name?

That's a very good point, and I'll followup with the GVD developers.

There is something in the break command that I haven't understood,
because:

(gdb) b toto.C:5
No source file named toto.C.
(gdb) b /bonn.a/brobecke/toplevel/symlinks/toto.C:4
Note: breakpoint 1 also set at pc 0x8048583.
Breakpoint 2 at 0x8048583: file /bonn.a/brobecke/toplevel_link/symlinks/toto.c, line 4.

This seems odd to me that GDB refuses a breakpoint on toto.C, but accepts
a breakpoint on /bonn.a/.../toto.C? I also noticed an inconsistency in the
filename used in the "Breakpoint 2 at ..." line, should this be also
normalized?

> I suspect this won't be correct in all cases, but I don't have a ready
> counterexample.

It would be useful if you could find such a counter example, because it
would help me for future work in GDB to undertand if there was something
I missed.

Supposing that this problem can be corrected entirely in GVD, should I
withdraw my change request? I would still prefer GDB to display toto.c
rather than toto.C as the basename part, but I don't have a strong
opinion so the advice of all GDB developers would be welcome.

--
Joel