public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/8] Leave child suspended when step over parent
@ 2016-02-19 14:36 Yao Qi
  2016-02-19 14:36 ` [PATCH 3/8] Use loop in disp-step-fork.c and disp-step-vfork.c Yao Qi
                   ` (8 more replies)
  0 siblings, 9 replies; 30+ messages in thread
From: Yao Qi @ 2016-02-19 14:36 UTC (permalink / raw)
  To: gdb-patches

When I teach GDBserver on arm-linux handling single step requested by
GDB (via vCont;s), I see a GDBserver internal error.  I can also
reproduce this internal error on mainline GDBserver as well.  In short,
the internal error is triggered by the child's incorrect suspend count,
because it is spawned by the parent and GDBserver is stepping the
parent over a breakpoint.  See more in patch #1.

Patches #2 to #8 are about refactoring and extending test case to
reproduce the internal error I've see.

Regression tested on x86_64-linux.

*** BLURB HERE ***

Yao Qi (8):
  [GDBserver] Leave child suspended when step over parent
  Refactor gdb.base/disp-step-syscall.exp for general step over test
  Use loop in disp-step-fork.c and disp-step-vfork.c
  Step over syscalll insn with disp-step on and off
  Step over fork/vfork syscall insn in gdbserver
  Reformat disp-step-syscall.exp
  Rename disp-step-syscall.exp to step-over-syscall.exp
  New test about step over clone syscall

 gdb/gdbserver/linux-low.c                    |  14 +-
 gdb/testsuite/gdb.base/disp-step-fork.c      |  58 -------
 gdb/testsuite/gdb.base/disp-step-syscall.exp | 154 ------------------
 gdb/testsuite/gdb.base/disp-step-vfork.c     |  70 ---------
 gdb/testsuite/gdb.base/step-over-clone.c     |  53 +++++++
 gdb/testsuite/gdb.base/step-over-fork.c      |  43 +++++
 gdb/testsuite/gdb.base/step-over-syscall.exp | 225 +++++++++++++++++++++++++++
 gdb/testsuite/gdb.base/step-over-vfork.c     |  47 ++++++
 8 files changed, 377 insertions(+), 287 deletions(-)
 delete mode 100644 gdb/testsuite/gdb.base/disp-step-fork.c
 delete mode 100644 gdb/testsuite/gdb.base/disp-step-syscall.exp
 delete mode 100644 gdb/testsuite/gdb.base/disp-step-vfork.c
 create mode 100644 gdb/testsuite/gdb.base/step-over-clone.c
 create mode 100644 gdb/testsuite/gdb.base/step-over-fork.c
 create mode 100644 gdb/testsuite/gdb.base/step-over-syscall.exp
 create mode 100644 gdb/testsuite/gdb.base/step-over-vfork.c

-- 
1.9.1

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2016-03-03  9:21 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-19 14:36 [PATCH 0/8] Leave child suspended when step over parent Yao Qi
2016-02-19 14:36 ` [PATCH 3/8] Use loop in disp-step-fork.c and disp-step-vfork.c Yao Qi
2016-02-25 17:28   ` Pedro Alves
2016-02-19 14:36 ` [PATCH 5/8] Step over fork/vfork syscall insn in gdbserver Yao Qi
2016-02-23 20:28   ` Luis Machado
2016-02-25 17:31   ` Pedro Alves
2016-02-19 14:36 ` [PATCH 4/8] Step over syscalll insn with disp-step on and off Yao Qi
2016-02-25 17:27   ` Pedro Alves
2016-02-19 14:36 ` [PATCH 2/8] Refactor gdb.base/disp-step-syscall.exp for general step over test Yao Qi
2016-02-19 14:37 ` [PATCH 1/8] [GDBserver] Leave child suspended when step over parent Yao Qi
2016-02-23 20:23   ` Luis Machado
2016-02-25 17:12   ` Pedro Alves
2016-02-19 14:37 ` [PATCH 8/8] New test about step over clone syscall Yao Qi
2016-02-23 20:31   ` Luis Machado
2016-02-25 17:43   ` Pedro Alves
2016-02-25 17:43   ` Pedro Alves
2016-02-19 14:37 ` [PATCH 7/8] Rename disp-step-syscall.exp to step-over-syscall.exp Yao Qi
2016-02-25 17:32   ` Pedro Alves
2016-02-19 14:37 ` [PATCH 6/8] Reformat disp-step-syscall.exp Yao Qi
2016-02-26 14:03 ` [PATCH 0/7 V2] Leave child suspended when step over parent Yao Qi
2016-02-26 14:04   ` [PATCH 5/7] Rename disp-step-syscall.exp to step-over-syscall.exp Yao Qi
2016-02-26 14:04   ` [PATCH 7/7] New test about step over clone syscall Yao Qi
2016-02-26 14:04   ` [PATCH 2/7] Refactor gdb.base/disp-step-syscall.exp for general step over test Yao Qi
2016-02-26 14:04   ` [PATCH 3/7] Step over syscalll insn with disp-step on and off Yao Qi
2016-02-26 14:04   ` [PATCH 4/7] Step over fork/vfork syscall insn in gdbserver Yao Qi
2016-02-26 15:02     ` Luis Machado
2016-02-26 15:50       ` Yao Qi
2016-02-26 14:04   ` [PATCH 6/7] Reformat gdb.base/step-over-syscall.exp Yao Qi
2016-02-26 14:04   ` [PATCH 1/7] [GDBserver] Leave child suspended when step over parent Yao Qi
2016-03-03  9:21   ` [PATCH 0/7 V2] " Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).