aboutsummaryrefslogtreecommitdiff
path: root/gdb/bpf-tdep.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2020-08-04 11:16:37 +0200
committerTom de Vries <tdevries@suse.de>2020-08-04 11:16:37 +0200
commit521894aa4bf50ca6569844af0c604ee8d5ea4b44 (patch)
treeb55c59efc9acccf2cd9ac468d3cdc92775852cb6 /gdb/bpf-tdep.c
parent31be51609cb7cb999aca291eb62a646dcb84fbe3 (diff)
downloadgdb-521894aa4bf50ca6569844af0c604ee8d5ea4b44.zip
gdb-521894aa4bf50ca6569844af0c604ee8d5ea4b44.tar.gz
gdb-521894aa4bf50ca6569844af0c604ee8d5ea4b44.tar.bz2
[gdb/symtab] Handle invalid partial DIE reference
When reverting commit 9cfd2b89bd "[gdb/testsuite] Fix gdb.arch/amd64-entry-value-paramref.S", we run into an internal-error: ... (gdb) file amd64-entry-value-paramref^M Reading symbols from amd64-entry-value-paramref...^M src/gdb/dwarf2/read.c:18903: internal-error: could not find partial DIE 0x1b7 in cache [from module amd64-entry-value-paramref]^M A problem internal to GDB has been detected,^M further debugging may prove unreliable.^M ... because of invalid dwarf. In contrast, when using -readnow, we have: ... (gdb) file -readnow amd64-entry-value-paramref Reading symbols from amd64-entry-value-paramref... Expanding full symbols from amd64-entry-value-paramref... Dwarf Error: Cannot find DIE at 0x1b7 referenced from DIE at 0x11a \ [in module amd64-entry-value-paramref] (gdb) ... Change the internal error into a Dwarf Error, such that we have: ... (gdb) file amd64-entry-value-paramref^M Reading symbols from amd64-entry-value-paramref...^M Dwarf Error: Cannot not find DIE at 0x1b7 \ [from module amd64-entry-value-paramref]^M ^M (No debugging symbols found in amd64-entry-value-paramref)^M (gdb) ... Build and tested on x86_64-linux. gdb/ChangeLog: 2020-08-04 Tom de Vries <tdevries@suse.de> PR symtab/23270 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf Error.
Diffstat (limited to 'gdb/bpf-tdep.c')
0 files changed, 0 insertions, 0 deletions