Bug 24635 - Error when setting breakpoint. DW_FORM_strp pointing outside of .debug_str section
Summary: Error when setting breakpoint. DW_FORM_strp pointing outside of .debug_str se...
Alias: None
Product: gdb
Classification: Unclassified
Component: symtab (show other bugs)
Version: 8.3
: P2 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
Depends on:
Reported: 2019-06-04 22:25 UTC by gusain
Modified: 2019-06-08 17:09 UTC (History)
0 users

See Also:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description gusain 2019-06-04 22:25:36 UTC
Unfortunately, I cannot reproduce this issue on a small example. So, I'll provide as much information as possible to determine problem.

% g++ --version
g++ (GCC) 8.3.0

Flags which might have link to problem
-gsplit-dwarf -fuse-ld=gold -Wl,--gdb-index -std=c++17

% gdb --version
GNU gdb (GDB) 8.3

When I load binary in gdb and try to set breakpoint, I can set few breakpoints without any problem but I get error which looks like this (file name, function name changed)

(gdb) b A::A
DW_FORM_strp pointing outside of .debug_str section [in module /<path>/A.dwo]

Looks like for some of the files, proper debug information is not available but it's not clear as to what went wrong and how it can be fixed. What should I look for to find out reason for this error ?

I have marked component as symbol tables and debug info as my best guess but feel free to change it if it doesn't belong here.

And in case more information is required to make any progress on this one, do let me know.