[Bug gdb/33609] info line not working (when addr2line and lldb do)
tromey at sourceware dot org
sourceware-bugzilla@sourceware.org
Wed Nov 19 18:29:29 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=33609
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org
Ever confirmed|0 |1
Last reconfirmed| |2025-11-19
Status|UNCONFIRMED |NEW
--- Comment #5 from Tom Tromey <tromey at sourceware dot org> ---
Something else weird is that this gives two breakpoint locations:
(gdb) break main
Breakpoint 1 at 0x10081214 (2 locations)
(gdb) info b
Num Type Disp Enb Address What
1 breakpoint keep y <MULTIPLE>
1.1 y 0x10081214 <main>
1.2 y 0x1008121a <main+6>
Also inspecting the line for these yields results:
(gdb) info line *0x10081214
Line 96 of
"/home/jean/travail/c/tfm/trusted-firmware-m/secure_fw/spm/core/main.c" starts
at address 0x10081214 <main> and ends at 0x1008121a <main+6>.
(gdb) info line *0x1008121a
Line 101 of
"/home/jean/travail/c/tfm/trusted-firmware-m/secure_fw/spm/core/main.c" starts
at address 0x1008121a <main+6> and ends at 0x10081220 <main+12>.
So, some weird decisions being made somewhere.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list