2012-02-14 Stan Shebs <stan@codesourcery.com>
authorStan Shebs <shebs@codesourcery.com>
Tue, 14 Feb 2012 23:28:15 +0000 (23:28 +0000)
committerStan Shebs <shebs@codesourcery.com>
Tue, 14 Feb 2012 23:28:15 +0000 (23:28 +0000)
commit816338b5632aeb20e01a18a1d96a59fac6459cd9
treea3b34e55155e514aec5502505fe8f53dd9cc537b
parent9395078e8d48c8a34db048c8247175e3b90107c6
2012-02-14  Stan Shebs  <stan@codesourcery.com>

* NEWS: Mention enable count command.
* breakpoint.h (struct breakpoint): New field enable_count.
* breakpoint.c (enable_breakpoint_disp): Add count argument.
(enable_breakpoint): Add arg to call.
(struct disp_data): New struct.
(do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
(do_map_enable_once_breakpoint): Create a struct and pass it.
(do_map_enable_delete_breakpoint): Ditto.
(do_map_enable_count_breakpoint): New function.
(enable_count_command): New function.
(bpstat_stop_status): Decrement enable_count.
(print_one_breakpoint_location): Report enable count.
(_initialize_breakpoint): Add enable count command.

* gdb.texinfo (Disabling Breakpoints): Document enable count.

* gdb.base/ena-dis-br.exp: Add enable count test.
gdb/ChangeLog
gdb/NEWS
gdb/breakpoint.c
gdb/breakpoint.h
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/ena-dis-br.exp