[PATCH 0/8] Support for Haiku/x86-64 in GDB

Jérôme Duval
2026-03-12T17:26:01Z

This series adds support for Haiku/x86-64 to GDB.

Initial support was done by Trung Nguyen for GDB 15.1 for GSoC 2024:
See blog entries https://www.haiku-os.org/tags/gdb
Original Port repository: https://github.com/trungnt2910/gdb-haiku

I mostly adapted to the next major releases.
These patches are maintained at HaikuPorts, we would like to upstream them.

Jérôme Duval (6):
gdb: Update Haiku support for 16.x
gdbserver: Update Haiku support for 16.x
gdb: Update Haiku support for 17.x
gdbserver: Update Haiku support for 17.x
gdb: Update Haiku support for 18.x
gdbserver: Update Haiku support for 18.x

Trung Nguyen (2):
gdbserver: Initial Haiku support
gdb: Initial Haiku support

gdb/Makefile.in | 28 +
gdb/NEWS | 2 +
gdb/amd64-haiku-nat.c | 151 ++
gdb/amd64-haiku-tdep.c | 142 ++
gdb/configure | 2 +-
gdb/configure.host | 2 +
gdb/configure.nat | 25 +
gdb/configure.tgt | 11 +
gdb/haiku-nat.c | 776 ++++++++++
gdb/haiku-nat.h | 75 +
gdb/haiku-tdep.c | 194 +++
gdb/haiku-tdep.h | 44 +
gdb/i386-haiku-nat.c | 37 +
gdb/i386-haiku-tdep.c | 59 +
gdb/nat/haiku-debug.c | 43 +
gdb/nat/haiku-nat.c | 2808 ++++++++++++++++++++++++++++++++++
gdb/nat/haiku-nat.h | 429 ++++++
gdb/nat/haiku-nub-message.c | 50 +
gdb/nat/haiku-nub-message.h | 141 ++
gdb/nat/haiku-osdata.c | 445 ++++++
gdb/nat/haiku-osdata.h | 26 +
gdb/solib-haiku.c | 128 ++
gdb/solib-haiku.h | 29 +
gdbserver/Makefile.in | 6 +
gdbserver/configure | 2 +-
gdbserver/configure.srv | 9 +
gdbserver/haiku-amd64-low.cc | 262 ++++
gdbserver/haiku-low.cc | 613 ++++++++
gdbserver/haiku-low.h | 100 ++
gdbserver/remote-utils.cc | 4 +
gdbsupport/osabi.def | 1 +
gdbsupport/signals.cc | 10 +
include/gdb/signals.def | 4 +-
33 files changed, 6655 insertions(+), 3 deletions(-)
create mode 100644 gdb/amd64-haiku-nat.c
create mode 100644 gdb/amd64-haiku-tdep.c
create mode 100644 gdb/haiku-nat.c
create mode 100644 gdb/haiku-nat.h
create mode 100644 gdb/haiku-tdep.c
create mode 100644 gdb/haiku-tdep.h
create mode 100644 gdb/i386-haiku-nat.c
create mode 100644 gdb/i386-haiku-tdep.c
create mode 100644 gdb/nat/haiku-debug.c
create mode 100644 gdb/nat/haiku-nat.c
create mode 100644 gdb/nat/haiku-nat.h
create mode 100644 gdb/nat/haiku-nub-message.c
create mode 100644 gdb/nat/haiku-nub-message.h
create mode 100644 gdb/nat/haiku-osdata.c
create mode 100644 gdb/nat/haiku-osdata.h
create mode 100644 gdb/solib-haiku.c
create mode 100644 gdb/solib-haiku.h
create mode 100644 gdbserver/haiku-amd64-low.cc
create mode 100644 gdbserver/haiku-low.cc
create mode 100644 gdbserver/haiku-low.h

--
2.43.0