diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-11-02 04:44:47 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-11-02 04:44:47 +0000 |
commit | 5c44784c11ecc8febfff615b88496c56c9ad5274 (patch) | |
tree | 74f9079f5b0ddae1182abf087af8adc02103e149 /gdb/annotate.c | |
parent | 9503fd8735ec438fcb2fca34afa276e3e6ca94f5 (diff) | |
download | gdb-5c44784c11ecc8febfff615b88496c56c9ad5274.zip gdb-5c44784c11ecc8febfff615b88496c56c9ad5274.tar.gz gdb-5c44784c11ecc8febfff615b88496c56c9ad5274.tar.bz2 |
import gdb-1999-11-01 snapshot
Diffstat (limited to 'gdb/annotate.c')
-rw-r--r-- | gdb/annotate.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gdb/annotate.c b/gdb/annotate.c index 1c235a5..4508ad8 100644 --- a/gdb/annotate.c +++ b/gdb/annotate.c @@ -40,6 +40,8 @@ void (*annotate_signalled_hook) PARAMS ((void)); void (*annotate_signal_hook) PARAMS ((void)); void (*annotate_exited_hook) PARAMS ((void)); +static int ignore_count_changed = 0; + static void print_value_flags (t) struct type *t; @@ -57,9 +59,24 @@ breakpoints_changed () { target_terminal_ours (); printf_unfiltered ("\n\032\032breakpoints-invalid\n"); + if (ignore_count_changed) + ignore_count_changed = 0; /* Avoid multiple break annotations. */ } } +/* The GUI needs to be informed of ignore_count changes, but we don't + want to provide successive multiple breakpoints-invalid messages + that are all caused by the fact that the ignore count is changing + (which could keep the GUI very busy). One is enough, after the + target actually "stops". */ + +void +annotate_ignore_count_change (void) +{ + if (annotation_level > 1) + ignore_count_changed = 1; +} + void annotate_breakpoint (num) int num; @@ -109,6 +126,11 @@ annotate_stopped () if (annotation_level > 1) printf_filtered ("\n\032\032stopped\n"); } + if (annotation_level > 1 && ignore_count_changed) + { + ignore_count_changed = 0; + breakpoints_changed (); + } } void |