From 816338b5632aeb20e01a18a1d96a59fac6459cd9 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Tue, 14 Feb 2012 23:28:15 +0000 Subject: 2012-02-14 Stan Shebs * 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/NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/NEWS') diff --git a/gdb/NEWS b/gdb/NEWS index 46ef6d8..ec7863a 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -49,6 +49,9 @@ ** "catch load" and "catch unload" can be used to stop when a shared library is loaded or unloaded, respectively. + ** "enable count" can be used to auto-disable a breakpoint after + several hits. + *** Changes in GDB 7.4 * GDB now handles ambiguous linespecs more consistently; the existing -- cgit v1.1