OSDN Git Service

2009-12-17 Stan Shebs <stan@codesourcery.com>
authorshebs <shebs>
Fri, 18 Dec 2009 09:36:46 +0000 (09:36 +0000)
committershebs <shebs>
Fri, 18 Dec 2009 09:36:46 +0000 (09:36 +0000)
* breakpoint.c (bpstat_check_location): Check for tracepoints.

gdb/ChangeLog
gdb/breakpoint.c

index 18bb4ba..16759d3 100644 (file)
@@ -1,3 +1,7 @@
+2009-12-17  Stan Shebs  <stan@codesourcery.com>
+
+       * breakpoint.c (bpstat_check_location): Check for tracepoints.
+
 2009-12-16  Michael Snyder  <msnyder@vmware.com>
 
        * i386-tdep.c (i386_process_record): Reformat comments.
index 5394ae4..47a10f6 100644 (file)
@@ -3306,6 +3306,11 @@ bpstat_check_location (const struct bp_location *bl,
 {
   struct breakpoint *b = bl->owner;
 
+  /* By definition, the inferior does not report stops at
+     tracepoints.  */
+  if (b->type == bp_tracepoint)
+    return 0;
+
   if (b->type != bp_watchpoint
       && b->type != bp_hardware_watchpoint
       && b->type != bp_read_watchpoint