This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch 1/2] Code cleanup: stack.c catch_errors -> TRY_CATCH
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 1 Aug 2011 16:58:52 +0200
- Subject: Re: [patch 1/2] Code cleanup: stack.c catch_errors -> TRY_CATCH
- References: <20110730222000.GA26756@host1.jankratochvil.net>
On Sun, 31 Jul 2011 00:20:01 +0200, Jan Kratochvil wrote:
> gdb/
> 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> Code cleanup.
> * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
> Remove, merge them into ...
> (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
> variable args and its initialization.
> (struct print_args_args, print_args_stub): Remove, merge them into
> print_frame.
> (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
> them into ...
> (do_gdb_disassembly): ... here. Remove variable args and its
> initialization.
> (print_frame): Remove variable args and its initialization, new
> variable gdbarch and numargs (from print_args_stub), inline here
> print_args_stub with a TRY_CATCH.
> (struct backtrace_command_args, backtrace_command_stub): Remove, merge
> them into ...
> (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
> New variable e, remove variable btargs and its initialization.
Checked it in when Tom expressed his agreement.
http://sourceware.org/ml/gdb-cvs/2011-08/msg00003.html
Thanks,
Jan