aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb_obstack.h
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2015-08-26 15:37:55 +0200
committerMarkus Metzger <markus.t.metzger@intel.com>2015-09-18 14:25:05 +0200
commitec71cc2fc6d319ebe4aebbe65a6a56ea1376200e (patch)
treef15a6af034afa9e4162b9e9802094935fec734f1 /gdb/gdb_obstack.h
parent0ca912dfef6289f9d2cd7d70b7ec80883a9b4395 (diff)
downloadgdb-ec71cc2fc6d319ebe4aebbe65a6a56ea1376200e.zip
gdb-ec71cc2fc6d319ebe4aebbe65a6a56ea1376200e.tar.gz
gdb-ec71cc2fc6d319ebe4aebbe65a6a56ea1376200e.tar.bz2
btrace: temporarily set inferior_ptid in record_btrace_start_replaying
Get_current_frame uses inferior_ptid. In record_btrace_start_replaying, we need to get the current frame of the argument thread. So far, this has always been inferior_ptid. With non-stop, this is not guaranteed. Temporarily set inferior_ptid to the ptid of the argument thread. We already temporarily set the argument thread's executing flag to false. Move both into a new function get_thread_current_frame that does the temporary adjustments, calls get_current_frame, and restores the previous values. gdb/ * record-btrace.c (get_thread_current_frame): New. (record_btrace_start_replaying): Call get_thread_current_frame.
Diffstat (limited to 'gdb/gdb_obstack.h')
0 files changed, 0 insertions, 0 deletions