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

Pedro Alves pedro@codesourcery.com
Fri Jul 30 18:24:00 GMT 2010


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



More information about the Gdb mailing list