fix two buglets in breakpoint.c
authorTom Tromey <tromey@redhat.com>
Thu, 30 May 2013 17:09:02 +0000 (17:09 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 30 May 2013 17:09:02 +0000 (17:09 +0000)
commit752eb8b4565471409d7f6aeda7b86bdef50f82a9
treee51d896ff05299fb2f73ea8ca9b18834831a07f0
parente42d0aa5bac43efc5556ca0e6ad18effd04de4ea
fix two buglets in breakpoint.c

First, output_thread_groups leaks a cleanup along one return path.

Second, parse_cmd_to_aexpr could return without running its cleanups,
if there was an exception in a TRY_CATCH.

* breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
do_cleanups earlier.
gdb/ChangeLog
gdb/breakpoint.c