Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/3] A few fixes to OpenBSD's native target
@ 2021-07-27  0:24 John Baldwin
  2021-07-27  0:24 ` [PATCH 1/3] Don't compile x86 debug register support on OpenBSD John Baldwin
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: John Baldwin @ 2021-07-27  0:24 UTC (permalink / raw)
  To: gdb-patches

The first patch is an alternative fix for the issue Simon ran into
with OpenBSD trying to use the x86 debug registers when it doesn't
support their use by a debugger.

The second patch pacifies a compiler warning due to the lack of debug
register support.

The third patch fixes an issue where an existing process tripped an
assertion where find_inferior_pid was called with a pid of 0
(unfortunately stack traces don't work for OpenBSD core dumps, so I
couldn't easily tell where hte failure was).  However, the use of
inferior_ptid is not correct anymore in ::wait methods and fixing that
alone allows a process to exit cleanly without error.

This is enough to get a single threaded program to run and exit
cleanly (which is all I tested).  There are likely other issues in the
OpenBSD target, but this at least gets it working for the simple case
again.

John Baldwin (3):
  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.

 gdb/configure.nat |  5 ++--
 gdb/obsd-nat.c    | 61 ++++++++++-------------------------------------
 gdb/x86-bsd-nat.c | 16 ++++++-------
 gdb/x86-bsd-nat.h |  9 +++++--
 4 files changed, 30 insertions(+), 61 deletions(-)

-- 
2.31.1


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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27  0:24 [PATCH 0/3] A few fixes to OpenBSD's native target John Baldwin
2021-07-27  0:24 ` [PATCH 1/3] Don't compile x86 debug register support on OpenBSD John Baldwin
2021-07-27  1:19   ` Simon Marchi via Gdb-patches
2021-07-27  0:24 ` [PATCH 2/3] x86-bsd-nat: Only define gdb_ptrace when using debug registers John Baldwin
2021-07-27  1:20   ` Simon Marchi via Gdb-patches
2021-07-27  0:24 ` [PATCH 3/3] obsd-nat: Various fixes to obsd_nat_target::wait John Baldwin
2021-07-27  1:54   ` Simon Marchi via Gdb-patches
2021-07-27 16:03     ` John Baldwin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox