public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] A few fixes to OpenBSD's native target
@ 2021-07-27 17:41 John Baldwin
  2021-07-27 17:41 ` [PATCH v2 1/5] Don't compile x86 debug register support on OpenBSD John Baldwin
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: John Baldwin @ 2021-07-27 17:41 UTC (permalink / raw)
  To: gdb-patches

This addresses some feedback from Simon but also adds two additional
patches that allow some simple fork following to mostly work for me on
OpenBSD/amd64 6.9.

The one remaining issue I see is that if I disable detach on fork and
allow a child process to run to completion then go back and continue
the parent process, the parent process is killed with a SIGHUP.  I
think this is probably an issue in OpenBSD's kernel though rather than
GDB and I don't plan on investigating that further.

John Baldwin (5):
  Don't compile x86 debug register support on OpenBSD.
  x86-bsd-nat: Only define gdb_ptrace when using debug registers.
  obsd-nat: Various fixes to obsd_nat_target::wait.
  obsd-nat: Various fixes for fork following.
  obsd-nat: Report both thread and PID in ::pid_to_str.

 gdb/configure.nat |   5 +--
 gdb/obsd-nat.c    | 112 +++++++++++++++-------------------------------
 gdb/obsd-nat.h    |   2 -
 gdb/x86-bsd-nat.c |  16 +++----
 gdb/x86-bsd-nat.h |   9 +++-
 5 files changed, 53 insertions(+), 91 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2021-07-30  1:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 17:41 [PATCH v2 0/5] A few fixes to OpenBSD's native target John Baldwin
2021-07-27 17:41 ` [PATCH v2 1/5] Don't compile x86 debug register support on OpenBSD John Baldwin
2021-07-27 17:41 ` [PATCH v2 2/5] x86-bsd-nat: Only define gdb_ptrace when using debug registers John Baldwin
2021-07-27 17:41 ` [PATCH v2 3/5] obsd-nat: Various fixes to obsd_nat_target::wait John Baldwin
2021-07-29 19:05   ` Simon Marchi
2021-07-29 19:11     ` Simon Marchi
2021-07-29 20:11       ` John Baldwin
2021-07-30  1:27         ` Simon Marchi
2021-07-27 17:41 ` [PATCH v2 4/5] obsd-nat: Various fixes for fork following John Baldwin
2021-07-29 19:14   ` Simon Marchi
2021-07-27 17:41 ` [PATCH v2 5/5] obsd-nat: Report both thread and PID in ::pid_to_str John Baldwin
2021-07-29 19:15 ` [PATCH v2 0/5] A few fixes to OpenBSD's native target Simon Marchi

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