From 3ca42dbe77c5d6d5e43e291414b1fa6aac5a0f25 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Wed, 28 Sep 2005 23:44:02 +0000 Subject: * 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. --- gdb/annotate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/annotate.c') diff --git a/gdb/annotate.c b/gdb/annotate.c index 205fe89..6242b74 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; -- cgit v1.1