public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] linux-nat: Fix watchpoint issues across exec calls
@ 2019-05-16 20:12 Pedro Franco de Carvalho
  2019-05-16 20:12 ` [PATCH 2/2] x86 linux: Update debug register state after exec events Pedro Franco de Carvalho
  2019-05-16 20:13 ` [PATCH 1/2] linux-nat: Callback for " Pedro Franco de Carvalho
  0 siblings, 2 replies; 3+ messages in thread
From: Pedro Franco de Carvalho @ 2019-05-16 20:12 UTC (permalink / raw)
  To: gdb-patches; +Cc: uweigand

These two patches are intended to fix an issue caused by calls to exec
when hardware breakpoints and watchpoints are in use.  Currently, the
linux native targets don't correctly keep track of debug register usage
across exec calls.

I've implemented this for the x86 linux target, but this likely affects
other native linux targets that keep track of debug registers (e.g. s390
and ARM).

I found these issues while fixing other issues with watchpoints for the
native linux on Power target.  I'm still working on those, and will
incorporate the changes needed for using watchpoints with exec with them.

Pedro Franco de Carvalho (2):
  linux-nat: Callback for exec events
  x86 linux: Update debug register state after exec events

 gdb/linux-nat.c                            |  4 ++
 gdb/linux-nat.h                            | 13 ++++++
 gdb/testsuite/gdb.base/watchpoint-exec.c   | 48 ++++++++++++++++++++
 gdb/testsuite/gdb.base/watchpoint-exec.exp | 53 ++++++++++++++++++++++
 gdb/x86-linux-nat.h                        |  3 ++
 gdb/x86-nat.c                              | 15 ++++--
 gdb/x86-nat.h                              |  8 +++-
 7 files changed, 140 insertions(+), 4 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/watchpoint-exec.c
 create mode 100644 gdb/testsuite/gdb.base/watchpoint-exec.exp

-- 
2.20.1

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

end of thread, other threads:[~2019-05-16 20:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-16 20:12 [PATCH 0/2] linux-nat: Fix watchpoint issues across exec calls Pedro Franco de Carvalho
2019-05-16 20:12 ` [PATCH 2/2] x86 linux: Update debug register state after exec events Pedro Franco de Carvalho
2019-05-16 20:13 ` [PATCH 1/2] linux-nat: Callback for " Pedro Franco de Carvalho

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).