aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/ChangeLog
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2016-07-21 12:12:18 +0100
committerYao Qi <yao.qi@linaro.org>2016-07-21 12:12:18 +0100
commit984a2c042e82f2306183d9d165c5cb99e4341503 (patch)
tree161f243913c0be7949b06b3a8b59cd0e11745c57 /gdb/gdbserver/ChangeLog
parentbec903c96bc5119e357b4ad2cab99bbee7de628e (diff)
downloadgdb-984a2c042e82f2306183d9d165c5cb99e4341503.zip
gdb-984a2c042e82f2306183d9d165c5cb99e4341503.tar.gz
gdb-984a2c042e82f2306183d9d165c5cb99e4341503.tar.bz2
Switch current_thread to lwp's thread in install_software_single_step_breakpoints
install_software_single_step_breakpoints has parameter lwp, but still need to switch to current_thread. In order to simplify its caller, we do the current_thread save/restore inside install_software_single_step_breakpoints. gdb/gdbserver: 2016-07-21 Yao Qi <yao.qi@linaro.org> * gdbthread.h (make_cleanup_restore_current_thread): Declare. * inferiors.c (do_restore_current_thread_cleanup): New function. (make_cleanup_restore_current_thread): Likewise. * linux-low.c (install_software_single_step_breakpoints): Call make_cleanup_restore_current_thread. Switch current_thread to thread.
Diffstat (limited to 'gdb/gdbserver/ChangeLog')
-rw-r--r--gdb/gdbserver/ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index b5e9c96..867a5a2 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,14 @@
2016-07-21 Yao Qi <yao.qi@linaro.org>
+ * gdbthread.h (make_cleanup_restore_current_thread): Declare.
+ * inferiors.c (do_restore_current_thread_cleanup): New function.
+ (make_cleanup_restore_current_thread): Likewise.
+ * linux-low.c (install_software_single_step_breakpoints): Call
+ make_cleanup_restore_current_thread. Switch current_thread to
+ thread.
+
+2016-07-21 Yao Qi <yao.qi@linaro.org>
+
* mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
(set_reinsert_breakpoint): New parameter ptid. Callers updated.
(clone_one_breakpoint): Likewise.