This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] [patch 1/2] Code cleanup: -ex and -x parsing: Use VEC
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 19 Mar 2012 19:18:30 +0100
- Subject: [commit] [patch 1/2] Code cleanup: -ex and -x parsing: Use VEC
- References: <20120225134744.GB15155@host2.jankratochvil.net>
On Sat, 25 Feb 2012 14:47:44 +0100, Jan Kratochvil wrote:
> gdb/
> 2012-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> Code cleanup.
> * main.c (struct cmdarg): Move it here from main. Add more comments.
> (cmdarg_s, VEC (cmdarg_s)): New.
> (main): Move struct cmdarg from here. New variables cmdarg_vec and
> cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
> Install cleanup for cmdarg_vec. Update filling for options 'x' and
> 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
> of CMDARG.
Checked in:
http://sourceware.org/ml/gdb-cvs/2012-03/msg00234.html
Thanks,
Jan