aboutsummaryrefslogtreecommitdiff
path: root/gdb/btrace.h
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2015-08-19 13:35:52 +0200
committerMarkus Metzger <markus.t.metzger@intel.com>2015-09-18 14:19:02 +0200
commit6e4879f0eb5ff1985d1040669a69675fadad53f8 (patch)
treeb368bf7b23ff94f9796c31e3277a120aa76114bb /gdb/btrace.h
parent5953356cc4f2bcbf76e2979c35283c11ce0ba992 (diff)
downloadbinutils-6e4879f0eb5ff1985d1040669a69675fadad53f8.zip
binutils-6e4879f0eb5ff1985d1040669a69675fadad53f8.tar.gz
binutils-6e4879f0eb5ff1985d1040669a69675fadad53f8.tar.bz2
btrace: support to_stop
Add support for the to_stop target method to the btrace record target. gdb/ * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New. * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP. (record_btrace_find_thread_to_move): Also accept threads that have BTHR_STOP set. (btrace_step_stopped_on_request, record_btrace_stop): New. (record_btrace_step_thread): Support BTHR_STOP. (record_btrace_wait): Also clear BTHR_STOP when stopping other threads. (init_record_btrace_ops): Initialize to_stop.
Diffstat (limited to 'gdb/btrace.h')
-rw-r--r--gdb/btrace.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/btrace.h b/gdb/btrace.h
index 756a778..f844df8 100644
--- a/gdb/btrace.h
+++ b/gdb/btrace.h
@@ -240,7 +240,10 @@ enum btrace_thread_flag
BTHR_RCONT = (1 << 3),
/* The thread is to be moved. */
- BTHR_MOVE = (BTHR_STEP | BTHR_RSTEP | BTHR_CONT | BTHR_RCONT)
+ BTHR_MOVE = (BTHR_STEP | BTHR_RSTEP | BTHR_CONT | BTHR_RCONT),
+
+ /* The thread is to be stopped. */
+ BTHR_STOP = (1 << 4)
};
#if defined (HAVE_LIBIPT)