From: Corinna Vinschen Date: Mon, 4 Mar 2013 15:09:46 +0000 (+0000) Subject: * coff-pe-read.c (read_pe_exported_syms): Don't return without X-Git-Tag: gdb_7_6-2013-03-12-branchpoint~115 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=feb1472522ea3ff9c0456462f36ce2e29be29f28;p=external%2Fbinutils.git * coff-pe-read.c (read_pe_exported_syms): Don't return without calling do_cleanup. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 848fa3d..f9d269f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-03-04 Corinna Vinschen + + * coff-pe-read.c (read_pe_exported_syms): Don't return without + calling do_cleanup. + 2013-03-04 Luis Machado * tracepoint.c (build_traceframe_info): Add code for byte order. diff --git a/gdb/coff-pe-read.c b/gdb/coff-pe-read.c index f953738..c930bac 100644 --- a/gdb/coff-pe-read.c +++ b/gdb/coff-pe-read.c @@ -379,6 +379,7 @@ read_pe_exported_syms (struct objfile *objfile) /* This is not a recognized PE format file. Abort now, because the code is untested on anything else. *FIXME* test on further architectures and loosen or remove this test. */ + do_cleanups (back_to); return; } @@ -392,6 +393,7 @@ read_pe_exported_syms (struct objfile *objfile) if (num_entries < 1) /* No exports. */ { + do_cleanups (back_to); return; } if (is_pe64) @@ -448,6 +450,7 @@ read_pe_exported_syms (struct objfile *objfile) if (export_size == 0) { /* Empty export table. */ + do_cleanups (back_to); return; }