Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Yao Qi <qiyaoltc@gmail.com>
To: gdb-patches@sourceware.org
Subject: [PATCH 0/8] Fix various issues in --wrapper in GDBserver
Date: Mon, 20 Jul 2015 11:35:00 -0000	[thread overview]
Message-ID: <1437392126-29503-1-git-send-email-yao.qi@linaro.org> (raw)

The original goal of this patch series is to fix GDBserver bug that
it creates target description too early.  The real fix and details
can be found in patch #7.  Patch #5 and #6 are refactor patch, and
do preparations for patch #7.  Patch #8 is a cleanup patch.

When I fix this target description issue, I see some other problems,
so I fix them together within this patch series.  Patch #1 - #4 are
not strictly related to this target description creation issue.
Patch #1 lets GDBserver to complain when --attach and --wrapper are
used together.  Patch #2 adds a test for --wrapper in extended mode.
Patch #3 adds a test about restarting process, and includes a fix to
a problem exposed by the test.  Patch #4 adds a test for --wrapper
to restart process.  With these tests added, I can make sure my
following changes/patches don't break anything.

The whole series are tested on 86_64-linux both native and gdbserver.
OK for mainline and 7.10 branch?

*** BLURB HERE ***

Yao Qi (8):
  Disallow using --attach and --wrapper together.
  Test --wrapper in extended-remote
  Set general_thread after restart
  Test --wrapper when restarting process.
  Refactor start_inferior
  Set proc->priv->new_inferior out of linux_add_process
  Initialise target descrption after skipping extra traps for --wrapper
  Remove proc->priv->new_inferior

 gdb/gdbserver/linux-low.c                | 77 +++++++++++++++++++++++++-------
 gdb/gdbserver/linux-low.h                |  5 ---
 gdb/gdbserver/lynx-low.c                 |  1 +
 gdb/gdbserver/nto-low.c                  |  1 +
 gdb/gdbserver/server.c                   | 40 +++++++++++------
 gdb/gdbserver/spu-low.c                  |  1 +
 gdb/gdbserver/target.h                   | 10 +++++
 gdb/gdbserver/win32-low.c                |  1 +
 gdb/testsuite/gdb.server/ext-restart.exp | 65 +++++++++++++++++++++++++++
 gdb/testsuite/gdb.server/ext-wrapper.exp | 72 +++++++++++++++++++++++++++++
 gdb/testsuite/lib/gdbserver-support.exp  | 16 ++++---
 11 files changed, 251 insertions(+), 38 deletions(-)
 create mode 100644 gdb/testsuite/gdb.server/ext-restart.exp
 create mode 100644 gdb/testsuite/gdb.server/ext-wrapper.exp

-- 
1.9.1


             reply	other threads:[~2015-07-20 11:35 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-20 11:35 Yao Qi [this message]
2015-07-20 11:35 ` [PATCH 2/8] Test --wrapper in extended-remote Yao Qi
2015-07-23 22:35   ` Pedro Alves
2015-07-20 11:35 ` [PATCH 1/8] Disallow using --attach and --wrapper together Yao Qi
2015-07-23 22:29   ` Pedro Alves
2015-07-24  8:44     ` Yao Qi
2015-07-24  8:51       ` Pedro Alves
2015-07-20 11:35 ` [PATCH 4/8] Test --wrapper when restarting process Yao Qi
2015-07-23 22:59   ` Pedro Alves
2015-07-20 11:36 ` [PATCH 5/8] Refactor start_inferior Yao Qi
2015-07-23 23:27   ` Pedro Alves
2015-07-20 11:36 ` [PATCH 7/8] Initialise target descrption after skipping extra traps for --wrapper Yao Qi
2015-07-23 23:26   ` Pedro Alves
2015-07-24 11:12     ` Yao Qi
2015-07-24 11:52       ` Pedro Alves
2015-07-24 13:08         ` Yao Qi
2015-07-24 13:44           ` Pedro Alves
2015-07-20 11:36 ` [PATCH 6/8] Set proc->priv->new_inferior out of linux_add_process Yao Qi
2015-07-23 23:26   ` Pedro Alves
2015-07-20 11:36 ` [PATCH 3/8] Set general_thread after restart Yao Qi
2015-07-23 22:58   ` Pedro Alves
2015-07-24  9:33     ` Yao Qi
2015-07-24  9:53       ` Pedro Alves
2015-07-24 11:31         ` Yao Qi
2015-07-20 11:36 ` [PATCH 8/8] Remove proc->priv->new_inferior Yao Qi
2015-07-23 23:27   ` Pedro Alves
2015-07-24 13:49 ` [PATCH 0/8] Fix various issues in --wrapper in GDBserver Yao Qi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1437392126-29503-1-git-send-email-yao.qi@linaro.org \
    --to=qiyaoltc@gmail.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox