Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: gdb-patches@sourceware.org
Subject: [PATCH 0/3] [GDBserver] Fix hardware breakpoint regressions
Date: Wed, 23 Apr 2014 23:41:00 -0000	[thread overview]
Message-ID: <1398296475-27997-1-git-send-email-palves@redhat.com> (raw)

This series fixes hardware breakpoint regressions exposed by my fix
for "PR breakpoints/7143 - Watchpoint does not trigger when first
set", at https://sourceware.org/ml/gdb-patches/2014-03/msg00167.html

The testsuite caught them on Linux/x86_64, at least.  gdb.sum:

 FAIL: gdb.base/hbreak2.exp: next over recursive call
 FAIL: gdb.base/hbreak2.exp: backtrace from factorial(5.1)
 FAIL: gdb.base/hbreak2.exp: continue until exit at recursive next test

gdb.log:

 (gdb) next

 Program received signal SIGTRAP, Trace/breakpoint trap.
 factorial (value=4) at ../../../src/gdb/testsuite/gdb.base/break.c:113
 113       if (value > 1) {  /* set breakpoint 7 here */
 (gdb) FAIL: gdb.base/hbreak2.exp: next over recursive call

The series touches code in all GDBserver targets.  I tested it by
building GDBserver for:

 aarch64-linux-gnu
 arm-linux-gnueabihf
 i686-pc-linux-gnu
 i686-w64-mingw32
 m68k-linux-gnu
 mips-linux-gnu
 mips-uclinux
 nios2-linux-gnu
 powerpc-linux-gnu
 sh-linux-gnu
 tilegx-unknown-linux-gnu
 x86_64-redhat-linux
 x86_64-w64-mingw32

And also regression tested on x86_64 Fedora 17.

I think the target-side changes aren't that invasive, and problems
should be easy to fix.

Unless there are objections, I'd like to push it in soon.

For convenience, this series is also available at:
  git@github.com:palves/gdb.git hbreak2_v1

Pedro Alves (3):
  [GDBserver][Aarch64] Make watchpoint support use target_hw_bp_type.
  [GDBserver] Move Z packet defines and type convertion routines to
    shared code.
  [GDBserver] Make Zx/zx packet handling idempotent.

 gdb/gdbserver/i386-low.c                    |  23 -
 gdb/gdbserver/i386-low.h                    |   6 -
 gdb/gdbserver/linux-aarch64-low.c           | 121 +++--
 gdb/gdbserver/linux-arm-low.c               |  73 +--
 gdb/gdbserver/linux-crisv32-low.c           |  63 ++-
 gdb/gdbserver/linux-low.c                   |  18 +-
 gdb/gdbserver/linux-low.h                   |   8 +-
 gdb/gdbserver/linux-mips-low.c              |  59 +--
 gdb/gdbserver/linux-ppc-low.c               |   1 +
 gdb/gdbserver/linux-s390-low.c              |   1 +
 gdb/gdbserver/linux-sparc-low.c             |   1 +
 gdb/gdbserver/linux-x86-low.c               |  76 +--
 gdb/gdbserver/lynx-low.c                    |   1 +
 gdb/gdbserver/mem-break.c                   | 732 ++++++++++++++++++++++------
 gdb/gdbserver/mem-break.h                   |  86 +++-
 gdb/gdbserver/nto-low.c                     |  49 +-
 gdb/gdbserver/server.c                      |  57 +--
 gdb/gdbserver/spu-low.c                     |   1 +
 gdb/gdbserver/target.h                      |  23 +-
 gdb/gdbserver/win32-arm-low.c               |   1 +
 gdb/gdbserver/win32-i386-low.c              |  42 +-
 gdb/gdbserver/win32-low.c                   |  18 +-
 gdb/gdbserver/win32-low.h                   |   7 +-
 gdb/testsuite/gdb.base/break-idempotent.c   |  52 ++
 gdb/testsuite/gdb.base/break-idempotent.exp | 179 +++++++
 25 files changed, 1202 insertions(+), 496 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/break-idempotent.c
 create mode 100644 gdb/testsuite/gdb.base/break-idempotent.exp

-- 
1.7.11.7


             reply	other threads:[~2014-04-23 23:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-23 23:41 Pedro Alves [this message]
2014-04-23 23:41 ` [PATCH 1/3] [GDBserver][Aarch64] Make watchpoint support use target_hw_bp_type Pedro Alves
2014-04-23 23:41 ` [PATCH 3/3] [GDBserver] Make Zx/zx packet handling idempotent Pedro Alves
2014-05-21  2:31   ` Yao Qi
2014-05-21  9:02     ` Pedro Alves
2014-05-21  9:33       ` Yao Qi
2014-04-23 23:41 ` [PATCH 2/3] [GDBserver] Move Z packet defines and type convertion routines to shared code Pedro Alves
2014-05-20 18:02 ` [PATCH 0/3] [GDBserver] Fix hardware breakpoint regressions Pedro Alves

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=1398296475-27997-1-git-send-email-palves@redhat.com \
    --to=palves@redhat.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