aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>2009-12-18 00:36:47 +0000
committerStan Shebs <shebs@codesourcery.com>2009-12-18 00:36:47 +0000
commite8595ef6184abe444dc28dda492d30bf067eff51 (patch)
treeb1e9f0eaa1cfe38346b4d55878c750a6806af082 /gdb/breakpoint.c
parent182145a847b412d9c10e05a568fb3b640be4d0c0 (diff)
downloadgdb-e8595ef6184abe444dc28dda492d30bf067eff51.zip
gdb-e8595ef6184abe444dc28dda492d30bf067eff51.tar.gz
gdb-e8595ef6184abe444dc28dda492d30bf067eff51.tar.bz2
2009-12-17 Stan Shebs <stan@codesourcery.com>
* breakpoint.c (bpstat_check_location): Check for tracepoints.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 5394ae4..47a10f6 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -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