diff options
author | Stan Shebs <shebs@apple.com> | 2012-02-14 23:28:11 +0000 |
---|---|---|
committer | Stan Shebs <shebs@apple.com> | 2012-02-14 23:28:11 +0000 |
commit | c2a0dc85ac69fb639f87db2b1441923589148c9d (patch) | |
tree | 591cb563f9ccf6c41714e6495339b0b21649b664 /gdb/breakpoint.h | |
parent | 04b892dcd824b5a3373327585335109714368d1f (diff) | |
download | gdb-c2a0dc85ac69fb639f87db2b1441923589148c9d.tar.gz |
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.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r-- | gdb/breakpoint.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index aa66790730e..07e3fc94d3b 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -596,6 +596,11 @@ struct breakpoint /* Number of stops at this breakpoint that should be continued automatically before really stopping. */ int ignore_count; + + /* Number of stops at this breakpoint before it will be + disabled. */ + int enable_count; + /* Chain of command lines to execute when this breakpoint is hit. */ struct counted_command_line *commands; |