diff options
author | Tom Tromey <tromey@redhat.com> | 2013-07-22 17:53:55 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-07-22 17:53:55 +0000 |
commit | 5b0fded83d4885312076005ede47963fb33839f8 (patch) | |
tree | 607bcb61c7c096fbde5a6c6540ae46116d0adc54 /gdb | |
parent | f5e51af0f2a34738443164a68c0ccc93392eb379 (diff) | |
download | gdb-5b0fded83d4885312076005ede47963fb33839f8.tar.gz |
fix dwarf_decode_line_header
dwarf_decode_line_header has one return that is missing a call to
do_cleanups. This patch adds it.
This was found using the cleanup checker.
* dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
on all return paths.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3ad3fae9a50..d472569e3df 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-07-22 Tom Tromey <tromey@redhat.com> + + * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups + on all return paths. + 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 94727a734a8..70ab302fb31 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -15704,6 +15704,7 @@ dwarf_decode_line_header (unsigned int offset, struct dwarf2_cu *cu) if (line_ptr + lh->total_length > (section->buffer + section->size)) { dwarf2_statement_list_fits_in_line_number_section_complaint (); + do_cleanups (back_to); return 0; } lh->statement_program_end = line_ptr + lh->total_length; |