Call enqueue_pending_signal in linux_resume_one_lwp_throw
authorYao Qi <yao.qi@linaro.org>
Wed, 2 Mar 2016 17:27:58 +0000 (17:27 +0000)
committerYao Qi <yao.qi@linaro.org>
Wed, 2 Mar 2016 17:27:58 +0000 (17:27 +0000)
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.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c

index 40150d71c8d30675ba7a177c17e3cf6642010bd6..089ca32641fd953c14fcaefc90d3d385058d44ad 100644 (file)
@@ -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
index 983b2d1b8072377b28f14c6982359161f4ccf292..22bf9151421be76b7b0005e3bffa876c63c3ab6e 100644 (file)
@@ -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)
     {