Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Jérôme Duval" <jerome.duval@gmail.com>
To: gdb-patches@sourceware.org
Cc: me@trungnt2910.com, "Jérôme Duval" <jerome.duval@gmail.com>
Subject: [PATCH v4 0/2] Support for Haiku/x86-64 in GDB
Date: Thu, 23 Apr 2026 20:59:40 +0200	[thread overview]
Message-ID: <20260423185942.7061-1-jerome.duval@gmail.com> (raw)

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.

Changes in v4:
- moved osabi changes to gdbserver patch
- fix solib-haiku::relocate_section_addresses
- Rebase on current

Changes in v3:
- Whitespace/tabs, struct keyword
- perror_with_name i18n friendly
- Haiku/i386 removed
- Rebase on current

Jérôme Duval (2):
  gdbserver: Haiku support
  gdb: Haiku support

 gdb/Makefile.in              |   25 +
 gdb/NEWS                     |    2 +
 gdb/amd64-haiku-nat.c        |  149 ++
 gdb/amd64-haiku-tdep.c       |  140 ++
 gdb/configure                |    2 +-
 gdb/configure.host           |    2 +
 gdb/configure.nat            |   15 +
 gdb/configure.tgt            |    6 +
 gdb/haiku-nat.c              |  775 ++++++++++
 gdb/haiku-nat.h              |   75 +
 gdb/haiku-tdep.c             |  192 +++
 gdb/haiku-tdep.h             |   44 +
 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            |  120 ++
 gdb/solib-haiku.h            |   29 +
 gdbserver/Makefile.in        |    6 +
 gdbserver/configure          |    2 +-
 gdbserver/configure.srv      |    9 +
 gdbserver/haiku-amd64-low.cc |  261 ++++
 gdbserver/haiku-low.cc       |  612 ++++++++
 gdbserver/haiku-low.h        |  100 ++
 gdbserver/remote-utils.cc    |    4 +
 gdbsupport/osabi.def         |    1 +
 gdbsupport/signals.cc        |   10 +
 include/gdb/signals.def      |    4 +-
 31 files changed, 6524 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/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


             reply	other threads:[~2026-04-23 19:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-23 18:59 Jérôme Duval [this message]
2026-04-23 18:59 ` [PATCH v4 1/2] gdbserver: Haiku support Jérôme Duval
2026-04-24  3:02   ` Simon Marchi
2026-04-23 18:59 ` [PATCH v4 2/2] gdb: " Jérôme Duval
2026-04-24  3:10   ` Simon Marchi
2026-04-24  3:13   ` Simon Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260423185942.7061-1-jerome.duval@gmail.com \
    --to=jerome.duval@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=me@trungnt2910.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox