fix init_cutu_and_read_dies
authorTom Tromey <tromey@redhat.com>
Mon, 22 Jul 2013 17:58:51 +0000 (17:58 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 22 Jul 2013 17:58:51 +0000 (17:58 +0000)
commitd11600184f9a77b4f781f3041ddb3c5c69bdf41e
treecc7a9107870d6e144e0067c402892a7a15be23b2
parent2f324bf6cb5c72ff20ec0fd5019a2221bcc67008
fix init_cutu_and_read_dies

init_cutu_and_read_dies creates an outer cleanup and uses its
immediately nested inner cleanup conditionally.  This seems overly
complicated to me; simpler is to just deal with the outer cleanup and
drop the inner one.  That is what this patch implements.

* dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
Simplify cleanup handling.
gdb/ChangeLog
gdb/dwarf2read.c