cleanup fixes for inf-ptrace.c
authorTom Tromey <tromey@redhat.com>
Thu, 30 May 2013 17:04:03 +0000 (17:04 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 30 May 2013 17:04:03 +0000 (17:04 +0000)
commit25f435004904ce1dce520d7dcc40eb9b623e244e
tree3fb8c77ea5c1215acfc79cc0b138a8f4e35ef4a0
parentd6a2e54a5d26fe98bd8a44b03cbec133188435ed
cleanup fixes for inf-ptrace.c

This is one of the stylistic patches.  The code here in inf-ptrace.c
is not incorrect, but it is in a style that the cleanup checker cannot
handle.  This patch changes it to a simpler style, following the usual
method of introducing an unconditional "outer" cleanup.

* inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
call discard_cleanups.
(inf_ptrace_attach): Likewise.
gdb/ChangeLog
gdb/inf-ptrace.c