[Bug breakpoints/21358] Can't list or set breakpoints in current source file if it is a symlink

jwakely.gcc at gmail dot com sourceware-bugzilla@sourceware.org
Fri Apr 7 11:31:00 GMT 2017


--- Comment #1 from Jonathan Wakely <jwakely.gcc at gmail dot com> ---
Pedro suggested this is related to "set basenames-may-differ" and so might be
by design. I would argue that the user experience is quite poor in that case

Most commands seem pretty clear about what the current file name is:

(gdb) step
f () at link.cc:5
5         puts("printy printy printy");
(gdb) bt
#0  f () at link.cc:5
#1  0x0000000000400600 in main () at link.cc:10
(gdb) br
Breakpoint 2 at 0x4005ea: file link.cc, line 5.

But then suddenly it's no longer that file:

(gdb) l 5
No line 5 in the current file.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Gdb-prs mailing list