summaryrefslogtreecommitdiff
path: root/gdb/annotate.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2013-01-22 20:22:38 +0000
committerPedro Alves <palves@redhat.com>2013-01-22 20:22:38 +0000
commitcdeb1bedc929e4dfac1fd181c636ad99e7d1381e (patch)
treeedc389ee9a5d0f970315e95e2512f175cc733b40 /gdb/annotate.c
parent918df08b8d459c4a44ea3e1e827ea35d334ab1fb (diff)
downloadgdb-cdeb1bedc929e4dfac1fd181c636ad99e7d1381e.tar.gz
If a breakpoint is not user visible, then there's no point in
bothering the frontend about it... This is the exact same check MI does. I also smoke tested Emacs 23 in gud-gdb mode, both annotations=2 and annotations=3. I didn't notice anything break. gdb/ 2013-01-22 Pedro Alves <palves@redhat.com> * annotate.c (breakpoint_changed): Skip if breakpoint is not user-visible. gdb/testsuite/ 2013-01-22 Pedro Alves <palves@redhat.com> * gdb.base/annota1.exp (signal sent): No longer expect breakpoints-invalid. * gdb.cp/annota2.exp (continue until exit) (watch triggered on a.x): Ditto.
Diffstat (limited to 'gdb/annotate.c')
-rw-r--r--gdb/annotate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/annotate.c b/gdb/annotate.c
index d82daa2919c..ccba5fe67a1 100644
--- a/gdb/annotate.c
+++ b/gdb/annotate.c
@@ -575,6 +575,9 @@ annotate_display_prompt (void)
static void
breakpoint_changed (struct breakpoint *b)
{
+ if (b->number <= 0)
+ return;
+
annotate_breakpoints_invalid ();
}