Fix 17170.
authorDoug Evans <dje@google.com>
Thu, 17 Jul 2014 09:38:32 +0000 (02:38 -0700)
committerDoug Evans <dje@google.com>
Thu, 17 Jul 2014 09:38:32 +0000 (02:38 -0700)
commitb8b8facf90dda8363c989c263715d46125b2c301
tree89cfec6a855c82538236af8d1a6fc3df8542c875
parent93c3fd0ec85cf35c87917a0ac48f10bfc3e6cc9f
Fix 17170.

* maint.c (count_symtabs_and_blocks): Handle NULL
current_program_space.
(report_command_stats): Check global enabled flag in addition to
recorded enabled flag.
(make_command_stats_cleanup): Handle msg_type == 0, startup.

testsuite/
* gdb.base/maint.exp: Update testing of per-command stats.
gdb/ChangeLog
gdb/maint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/maint.exp