summaryrefslogtreecommitdiff
path: root/gdb/annotate.c
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2005-09-28 23:44:02 +0000
committerNick Roberts <nickrob@snap.net.nz>2005-09-28 23:44:02 +0000
commit15be76fd5a36a5a1e9b9b74116a65162aa6b7b46 (patch)
tree302edc725f8d62e4ef412d73d8fdf2a1d75c6844 /gdb/annotate.c
parentbfc4a83f0d9a44dca5d7dea8bf4160d76783603d (diff)
downloadgdb-15be76fd5a36a5a1e9b9b74116a65162aa6b7b46.tar.gz
* annotate.c (breakpoints_changed, annotate_frames_invalid)
(_initialize_annotate): Print breakpoints-invalid and frames-invalid for level 2 annotations only. * gdb.base/annota3.exp, gdb.cp/annota3.exp: The annotations frames-invalid and breakpoints-invalid are no longer generated with level 3 so don't expect them in the output.
Diffstat (limited to 'gdb/annotate.c')
-rw-r--r--gdb/annotate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/annotate.c b/gdb/annotate.c
index 205fe89dd35..6242b7496db 100644
--- a/gdb/annotate.c
+++ b/gdb/annotate.c
@@ -55,7 +55,7 @@ print_value_flags (struct type *t)
void
breakpoints_changed (void)
{
- if (annotation_level > 1)
+ if (annotation_level == 2)
{
target_terminal_ours ();
printf_unfiltered (("\n\032\032breakpoints-invalid\n"));
@@ -228,7 +228,7 @@ annotate_breakpoints_table_end (void)
void
annotate_frames_invalid (void)
{
- if (annotation_level > 1)
+ if (annotation_level == 2)
{
target_terminal_ours ();
printf_unfiltered (("\n\032\032frames-invalid\n"));
@@ -577,7 +577,7 @@ breakpoint_changed (struct breakpoint *b)
void
_initialize_annotate (void)
{
- if (annotation_level > 1)
+ if (annotation_level == 2)
{
deprecated_delete_breakpoint_hook = breakpoint_changed;
deprecated_modify_breakpoint_hook = breakpoint_changed;