From 0928e93dfdc0fac8849999962e2ef69cf638fd9a Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 22 Jan 2013 20:22:39 +0000 Subject: 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 * annotate.c (breakpoint_changed): Skip if breakpoint is not user-visible. gdb/testsuite/ 2013-01-22 Pedro Alves * gdb.base/annota1.exp (signal sent): No longer expect breakpoints-invalid. * gdb.cp/annota2.exp (continue until exit) (watch triggered on a.x): Ditto. --- gdb/annotate.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/annotate.c') diff --git a/gdb/annotate.c b/gdb/annotate.c index d82daa2..ccba5fe 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 (); } -- cgit v1.1