]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/dwarf: change read_loclist_index complaints into errors
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 2 Feb 2021 15:40:50 +0000 (10:40 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 3 Feb 2021 14:51:49 +0000 (09:51 -0500)
commit767fbfe95eeafeb7ef92f5ee36959b31cfb3d616
tree3b76a75b03848f9a6b841e2ed301f8ce85de766c
parent288ff897b19e9dea1647f9f8749da1c7ab7fee1b
gdb/dwarf: change read_loclist_index complaints into errors

Unlike read_rnglists_index, read_loclist_index uses complaints when it
detects an inconsistency (a DW_FORM_loclistx value without a
.debug_loclists section or an offset outside of the section).  I really
think they should be errors, since there's no point in continuing if
this situation happens, we will likely segfault or read garbage.

gdb/ChangeLog:

* dwarf2/read.c (read_loclist_index): Change complaints into
errors.

Change-Id: Ic3a1cf6e682d47cb6e739dd76fd7ca5be2637e10
gdb/ChangeLog
gdb/dwarf2/read.c