diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2015-08-26 15:37:55 +0200 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2015-09-18 14:25:05 +0200 |
commit | ec71cc2fc6d319ebe4aebbe65a6a56ea1376200e (patch) | |
tree | f15a6af034afa9e4162b9e9802094935fec734f1 /gdb/ChangeLog | |
parent | 0ca912dfef6289f9d2cd7d70b7ec80883a9b4395 (diff) | |
download | binutils-gdb-ec71cc2fc6d319ebe4aebbe65a6a56ea1376200e.tar.gz |
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/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d6901c8835b..4c6d0e1bc5b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2015-09-18 Markus Metzger <markus.t.metzger@intel.com> + * record-btrace.c (get_thread_current_frame): New. + (record_btrace_start_replaying): Call get_thread_current_frame. + +2015-09-18 Markus Metzger <markus.t.metzger@intel.com> + * record-btrace.c (record_btrace_resume_thread): A move request overwrites a previous move request. (record_btrace_find_resume_thread): Removed. |