This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/10] Register debug commands using add_setshow_zuinteger_cmd
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Tue, 31 Jul 2012 18:50:31 +0800
- Subject: [PATCH 0/10] Register debug commands using add_setshow_zuinteger_cmd
- References: <87vch52mag.fsf@fleche.redhat.com>
On Monday, July 30, 2012 11:25:59 AM Tom Tromey wrote:
> Yao> This patch is not indented to commit anything to CVS, but describe what I
> Yao> try to do. If it is the right way to go, I'll convert other zinteger_cmd
> Yao> to zuinteger_cmd if appropriate. What do you think?
>
> For 'maint' and 'set debug' settings, I think it is fine.
This patch set converts debug/maint commands registration from add_setshow_zinteger_cmd
to add_setshow_zuinteger_cmd, and change debug flag from 'int' to 'unsigned int'.
Note that 'add_setshow_zinteger_cmd' is overused (or abused), and this patch series fix
it to some extent. After this patch, there are still some places use
add_setshow_zinteger_cmd improperly, such as ser-go32.c:_initialize_ser_dos.
Rebuild on x86-linux with --enable-targets=all. Regression tested on x86_64-linux.