This is the mail archive of the gdb@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]

Re: [patch] Fix for 'too much spew with "set verbose on"'


On Friday 30 July 2010 17:24:38, Paul Pluzhnikov wrote:
> +  add_setshow_boolean_cmd ("show-libthreaddb-processing", class_maintenance,
> +                          &maint_show_libthreaddb_processing, _("\
> +Set whether to show processing of libthread_db."), _("\
> +Show whether to show processing of libthread_db."), _("\
> +Use \"on\" to enable, \"off\" to disable.\n\
> +If enabled, GDB will print details of libthread_db processing."),
> +                          NULL,
> +                          NULL,

Please implement this callback (it's the `show_func').  That is
a requirement for proper i18n.  At some point (when all commands
have been fixed to implement the callback), there'll be a 
runtime assertion forbiding this field being NULL.  Thanks.

> +                          &maintenance_set_cmdlist,
> +                          &maintenance_show_cmdlist);
>    /* Add ourselves to objfile event chain.  */

-- 
Pedro Alves


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