aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2016-03-02 17:27:58 +0000
committerYao Qi <yao.qi@linaro.org>2016-03-02 17:27:58 +0000
commitfdbd04a8adef3a48eeac7702e9243c7c31e47256 (patch)
treecab6fc2c6e5ec3b899407a81897312cec481078a
parent6896a8fa1e1d24a8fcc9b30efc0b195246b46029 (diff)
downloadgdb-fdbd04a8adef3a48eeac7702e9243c7c31e47256.zip
gdb-fdbd04a8adef3a48eeac7702e9243c7c31e47256.tar.gz
gdb-fdbd04a8adef3a48eeac7702e9243c7c31e47256.tar.bz2
Call enqueue_pending_signal in linux_resume_one_lwp_throw
Replace the code which is exactly what enqueue_pending_signal does. gdb/gdbserver: 2016-03-02 Yao Qi <yao.qi@linaro.org> * linux-low.c (linux_resume_one_lwp_throw): Replace code with enqueue_pending_signal.
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-low.c12
2 files changed, 6 insertions, 11 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 40150d7..089ca32 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2016-03-02 Yao Qi <yao.qi@linaro.org>
+
+ * linux-low.c (linux_resume_one_lwp_throw): Replace code with
+ enqueue_pending_signal.
+
2016-03-02 Marcin Koƛcielnicki <koriakin@0x04.net>
* tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 983b2d1..22bf915 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -4158,17 +4158,7 @@ linux_resume_one_lwp_throw (struct lwp_info *lwp,
|| lwp->pending_signals != NULL
|| lwp->bp_reinsert != 0
|| fast_tp_collecting))
- {
- struct pending_signals *p_sig = XNEW (struct pending_signals);
-
- p_sig->prev = lwp->pending_signals;
- p_sig->signal = signal;
- if (info == NULL)
- memset (&p_sig->info, 0, sizeof (siginfo_t));
- else
- memcpy (&p_sig->info, info, sizeof (siginfo_t));
- lwp->pending_signals = p_sig;
- }
+ enqueue_pending_signal (lwp, signal, info);
if (lwp->status_pending_p)
{