diff options
author | Pedro Alves <palves@redhat.com> | 2009-11-21 21:17:17 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-11-21 21:17:17 +0000 |
commit | f6bc20088048522ffb945254f59f824f5cbdaebd (patch) | |
tree | 88a4983875865ce7d3659f85c5628703923eb225 /gdb/breakpoint.h | |
parent | 8c2fb5deb3f40d81b448d54d7eaa02cde2c6e014 (diff) | |
download | gdb-f6bc20088048522ffb945254f59f824f5cbdaebd.zip gdb-f6bc20088048522ffb945254f59f824f5cbdaebd.tar.gz gdb-f6bc20088048522ffb945254f59f824f5cbdaebd.tar.bz2 |
gdb/
* breakpoint.h (struct breakpoint) <watchpoint_thread>: New field.
* breakpoint.c (watchpoint_in_thread_scope): New.
(update_watchpoint): Skip if the local watchpoint's thread doesn't
match the current thread, or if the current thread is running.
(watchpoint_check): Ditto.
(watch_command_1): Set the watchpoint's watchpoint_thread field.
gdb/testsuite/
* gdb.threads/local-watch-wrong-thread.c,
gdb.threads/local-watch-wrong-thread.exp: New files.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r-- | gdb/breakpoint.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index 91e864c..6587407 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -457,6 +457,11 @@ struct breakpoint should be evaluated on the outermost frame. */ struct frame_id watchpoint_frame; + /* Holds the thread which identifies the frame this watchpoint + should be considered in scope for, or `null_ptid' if the + watchpoint should be evaluated in all threads. */ + ptid_t watchpoint_thread; + /* For hardware watchpoints, the triggered status according to the hardware. */ enum watchpoint_triggered watchpoint_triggered; |