aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-07-22 17:53:55 +0000
committerTom Tromey <tromey@redhat.com>2013-07-22 17:53:55 +0000
commit2f324bf6cb5c72ff20ec0fd5019a2221bcc67008 (patch)
tree776ee3a733a849d0f531f3ed518bc8cda40f104c /gdb/dwarf2read.c
parent7539e41e9fd1fc8ffa2dcce49f86441305a3d620 (diff)
downloadgdb-2f324bf6cb5c72ff20ec0fd5019a2221bcc67008.zip
gdb-2f324bf6cb5c72ff20ec0fd5019a2221bcc67008.tar.gz
gdb-2f324bf6cb5c72ff20ec0fd5019a2221bcc67008.tar.bz2
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/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 94727a7..70ab302 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;