[PATCH v2 0/5] Refine the NetBSD support

Kamil Rytarowski n54@gmx.com
Thu Oct 1 19:22:16 GMT 2020


Fix the NetBSD/i386 build of the native GDB code.

Refactor the gdbserver and amd64 target to be agnostic to more
targets. Add i386 gdbserver support.

Fix portability issue in agent.cc.

Changes in v2:
 * Include x86-bsd-nat.h in i386-bsd-nat.h, rather than i386-nbsd-nat.c.
 * Make the message description clearer for the sockaddr_un change.
 * Code style fixes.

Kamil Rytarowski (5):
  Include the x86-bsd-nat.h header and fix the NetBSD/i386 build
  Preinitialize the sockaddr_un variable to zero
  Refactor the NetBSD amd64 gdbserver support
  Add NetBSD/i386 gdbserver support
  Remove the old sanity check of sigcontext offsets for NetBSD/i386

 gdb/ChangeLog                 |   8 ++
 gdb/i386-bsd-nat.c            |   6 +-
 gdb/i386-bsd-nat.h            |   2 +
 gdbserver/ChangeLog           |  23 +++++
 gdbserver/Makefile.in         |   1 +
 gdbserver/configure.srv       |   6 ++
 gdbserver/netbsd-amd64-low.cc |  53 ++++++++----
 gdbserver/netbsd-i386-low.cc  | 157 ++++++++++++++++++++++++++++++++++
 gdbserver/netbsd-low.cc       |  13 ++-
 gdbserver/netbsd-low.h        |  30 ++-----
 gdbsupport/ChangeLog          |   5 +-
 gdbsupport/agent.cc           |   2 +-
 12 files changed, 253 insertions(+), 53 deletions(-)
 create mode 100644 gdbserver/netbsd-i386-low.cc

--
2.28.0


More information about the Gdb-patches mailing list