[PATCH 0/8] Fix various issues in --wrapper in GDBserver
Yao Qi
qiyaoltc@gmail.com
Mon Jul 20 11:35:00 GMT 2015
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
More information about the Gdb-patches
mailing list