This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


https://sourceware.org/bugzilla/show_bug.cgi?id=21358

--- 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
though.

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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]