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.