This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/10] Register debug commands using add_setshow_zuinteger_cmd


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]