diff options
author | Tom Tromey <tom@tromey.com> | 2021-04-17 13:40:04 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-04-17 13:40:04 -0600 |
commit | da314dd397ab967af558f2929a79349aa5f96ac8 (patch) | |
tree | b208014a1127187e98feb5a94afa6148f48787bf /bfd | |
parent | 0b7b2c2adff43d39ee3bd39ebd91a6710d9175e4 (diff) | |
download | gdb-da314dd397ab967af558f2929a79349aa5f96ac8.zip gdb-da314dd397ab967af558f2929a79349aa5f96ac8.tar.gz gdb-da314dd397ab967af558f2929a79349aa5f96ac8.tar.bz2 |
Avoid crash in write_psymtabs_to_index
If I try "save gdb-index" using the executable from
gdb.cp/cmpd-minsyms.exp, gdb will crash. This happens due to a
missing NULL check.
gdb/ChangeLog
2021-04-17 Tom Tromey <tom@tromey.com>
* dwarf2/index-write.c (write_psymtabs_to_index): Check
partial_symtabs.
gdb/testsuite/ChangeLog
2021-04-17 Tom Tromey <tom@tromey.com>
* gdb.dwarf2/gdb-index-nodebug.exp: New file.
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions