Add new internal problem for demangler warnings
authorGary Benson <gbenson@redhat.com>
Thu, 19 Jun 2014 08:10:44 +0000 (09:10 +0100)
committerGary Benson <gbenson@redhat.com>
Thu, 19 Jun 2014 08:10:44 +0000 (09:10 +0100)
commit57fcfb1b202c09bf83e0e98dfb1d518e7be71d2c
treecc0e0de9c1ae26d1fc99717964a3d3321e9340dc
parent45371d0ceec9e0771306060c49f378eea01b1269
Add new internal problem for demangler warnings

This commit adds a new category of internal problem for demangler
warnings.  Demangler warnings behave in much the same way as internal
warnings except that they do not create core files and no option to
change this is presented to the user.

gdb/
2014-06-19  Gary Benson  <gbenson@redhat.com>

* utils.h (demangler_vwarning): New declaration.
(demangler_warning): Likewise.
* utils.c (struct internal_problem)
<user_settable_should_quit>: New field.
<user_settable_should_dump_core>: Likewise
(internal_error_problem): Add values for above new fields.
(internal_warning_problem): Likewise.
(demangler_warning_problem): New static global.
(demangler_vwarning): New function.
(demangler_warning): Likewise.
(add_internal_problem_command): Selectively add commands.
(_initialize_utils): New internal problem command.
* maint.c (maintenance_demangler_warning): New function.
(_initialize_maint_cmds): New command.

gdb/doc/
2014-06-19  Gary Benson  <gbenson@redhat.com>

* gdb.texinfo (Maintenance Commands): Document new
"maint demangler-warning" command and new
"maint set/show demangler-warning" option.
gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/maint.c
gdb/utils.c
gdb/utils.h