aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile-debug.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-05-12 16:37:52 -0600
committerTom Tromey <tom@tromey.com>2022-05-26 11:37:06 -0600
commit834eaf9201c18efc5b888f3cd116dd7856bec759 (patch)
tree3277da585f85212f1f63d5b58c9cc6f21c9b6283 /gdb/symfile-debug.c
parent20a26f4e018cd0cb40a3b81568be0d4f164eed0f (diff)
downloadbinutils-834eaf9201c18efc5b888f3cd116dd7856bec759.zip
binutils-834eaf9201c18efc5b888f3cd116dd7856bec759.tar.gz
binutils-834eaf9201c18efc5b888f3cd116dd7856bec759.tar.bz2
Fix crash in new DWARF indexer
PR gdb/29128 points out a crash in the new DWARF index code. This happens if the aranges for a CU claims a PC, but the symtab that is created during CU expansion does not actually contain the PC. This can only occur due to bad debuginfo, but at the same time, gdb should not crash. This patch fixes the bug and further merges some code into dwarf2_base_index_functions. This merger helps prevent the same issue from arising from the other index implementations. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29128
Diffstat (limited to 'gdb/symfile-debug.c')
0 files changed, 0 insertions, 0 deletions