[PATCH 7/8] gdb: Update Haiku support for 18.x

Jérôme Duval
2026-03-12T17:27:04Z

---
gdb/haiku-tdep.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gdb/haiku-tdep.c b/gdb/haiku-tdep.c
index f0fd1d2f..647e6fcc 100644
--- a/gdb/haiku-tdep.c
+++ b/gdb/haiku-tdep.c
@@ -22,6 +22,7 @@
#include "bfd.h"
#include "elf-bfd.h"
#include "gdbarch.h"
+#include "gdbcore.h"
#include "haiku-tdep.h"
#include "inferior.h"
#include "osdata.h"
@@ -71,7 +72,7 @@ haiku_bfd_open_commpage ()
Otherwise, GDB will complain with a segfault. */
bfd *tmpbfd = current_inferior ()->pspace->exec_bfd ();
if (tmpbfd == nullptr)
- tmpbfd = current_inferior ()->pspace->core_bfd ();
+ tmpbfd = get_inferior_core_bfd (current_inferior ());
if (tmpbfd == nullptr)
return nullptr;

--
2.43.0