This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH OBV] Call enqueue_pending_signal in linux_resume_one_lwp_throw
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 2 Mar 2016 17:27:17 +0000
- Subject: [PATCH OBV] Call enqueue_pending_signal in linux_resume_one_lwp_throw
- Authentication-results: sourceware.org; auth=none
Replace the code which is exactly what enqueue_pending_signal does.
It is obvious and I'll push it in.
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.
---
gdb/gdbserver/ChangeLog | 5 +++++
gdb/gdbserver/linux-low.c | 12 +-----------
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 172fb2b..ffe63a6 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -4162,17 +4162,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)
{
--
1.9.1