Hello,

This fails to build on alpha. I haven't tested 17.2, but considering the
nature of the failure it's probably the same.

gdb/configure.host sets alpha*-*-openbsd* to a gdb_host of nbsd, which
in turn, through gdb/configure.nat, puts nat/netbsd-nat.o in
NATDEPFILES, and fails to compile.

I can try and cook something up, but considering the long build times I
would appreciate some help from people with more advanced educated
guessing skills in this area.

martijn@

On 10/16/26 18:51, Jeremie Courreges-Anglas wrote:
> On Wed, Oct 14, 2026 at 10:57:08PM +0200, Theo Buehler wrote:
>> On Wed, Oct 14, 2026 at 01:32:51PM +0200, Jeremie Courreges-Anglas wrote:
>>> Hi,
>>>
>>> Nothing really outstanding, just a bunch of changes because defs.h now
>>> shouldn't be included directly and a function signature change.
>>>
>>> Tests welcome on your pet architecture(s).  Already tested on:
>>> - amd64
>>> - arm64
>>> - riscv64
>>
>> I tested it on sparc64 where gdb 17 hasn't worked very well after the
>> switch to clang. As far as I can tell gdb 18 works no better but also
>> no worse than 17 (too many oddities to enumerate. Stepping is pretty
>> broken, especially for optimized binaries: it has a tendency to hang).
> 
> Grumpf, thanks for pointing this out.  I'm not really surprised, but I
> don't have access to a sparc64 box any more so I can't take a look
> right now.
> 
>>> -DISTNAME=  gdb-17.2
>>> +DISTNAME=  gdb-18.1
>>>  
>>>  HOMEPAGE=  https://www.gnu.org/software/gdb/
>>
>> There was a REVISION bump after the xxhash update, so the Makefile diff
>> does not apply.
> 
> Pfff, I'm not sure how I managed to forget about that given that I had
> to fix the conflict on maybe 5 machines. (-8
> 
> Updated diff below, I'm not sure I'll wait for reports on each and
> every architecture but more feedback would obviously be welcome.
> oks too!
> 
> 
> Index: Makefile
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/Makefile,v
> diff -u -p -r1.104 Makefile
> --- Makefile  9 Oct 2026 05:52:41 -0000       1.104
> +++ Makefile  13 Oct 2026 12:01:18 -0000
> @@ -4,8 +4,7 @@ DPB_PROPERTIES=       parallel
>  COMMENT=     GNU debugger
>  CATEGORIES=  devel
>  
> -DISTNAME=    gdb-17.2
> -REVISION=    0
> +DISTNAME=    gdb-18.1
>  
>  HOMEPAGE=    https://www.gnu.org/software/gdb/
>  
> Index: distinfo
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/distinfo,v
> diff -u -p -r1.28 distinfo
> --- distinfo  22 May 2026 16:01:58 -0000      1.28
> +++ distinfo  25 Sep 2026 16:56:23 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (gdb/gdb-17.2.tar.xz) = HANsDXLks9H7XJTIhjKt1vnXb018TS6nk8EqnxmjIow=
> -SIZE (gdb/gdb-17.2.tar.xz) = 24658624
> +SHA256 (gdb/gdb-18.1.tar.xz) = zZ/D/itHdDhA5CwVktPYf4MC6xhjnAuLS6CJgALiNI8=
> +SIZE (gdb/gdb-18.1.tar.xz) = 22158720
> Index: patches/patch-bfd_elf_c
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/patches/patch-bfd_elf_c,v
> diff -u -p -r1.16 patch-bfd_elf_c
> --- patches/patch-bfd_elf_c   15 Jan 2026 12:03:34 -0000      1.16
> +++ patches/patch-bfd_elf_c   25 Sep 2026 16:56:23 -0000
> @@ -1,7 +1,7 @@
>  Index: bfd/elf.c
>  --- bfd/elf.c.orig
>  +++ bfd/elf.c
> -@@ -11876,6 +11876,11 @@ elfcore_grok_solaris_note (bfd *abfd, 
> Elf_Internal_Not
> +@@ -11882,6 +11882,11 @@ elfcore_grok_solaris_note (bfd *abfd, 
> Elf_Internal_Not
>   static bool
>   elfcore_grok_openbsd_note (bfd *abfd, Elf_Internal_Note *note)
>   {
> @@ -13,7 +13,7 @@ Index: bfd/elf.c
>     if (note->type == NT_OPENBSD_PROCINFO)
>       return elfcore_grok_openbsd_procinfo (abfd, note);
>   
> -@@ -11904,6 +11909,9 @@ elfcore_grok_openbsd_note (bfd *abfd, 
> Elf_Internal_Not
> +@@ -11910,6 +11915,9 @@ elfcore_grok_openbsd_note (bfd *abfd, 
> Elf_Internal_Not
>   
>         return true;
>       }
> Index: patches/patch-gdb_Makefile_in
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/patches/patch-gdb_Makefile_in,v
> diff -u -p -r1.11 patch-gdb_Makefile_in
> --- patches/patch-gdb_Makefile_in     15 Jan 2026 12:03:34 -0000      1.11
> +++ patches/patch-gdb_Makefile_in     25 Sep 2026 16:56:23 -0000
> @@ -4,21 +4,21 @@ Add native support for arm.
>  Index: gdb/Makefile.in
>  --- gdb/Makefile.in.orig
>  +++ gdb/Makefile.in
> -@@ -730,6 +730,7 @@ ALL_64_TARGET_OBS = \
> +@@ -723,6 +723,7 @@ ALL_64_TARGET_OBS = \
>       aarch64-fbsd-tdep.o \
>       aarch64-linux-tdep.o \
>       aarch64-newlib-tdep.o \
>  +    aarch64-obsd-tdep.o \
>       aarch64-ravenscar-thread.o \
>       aarch64-tdep.o \
> -     alpha-bsd-tdep.o \
> -@@ -769,10 +770,12 @@ ALL_64_TARGET_OBS = \
> +     aarch64-windows-tdep.o \
> +@@ -762,10 +763,12 @@ ALL_64_TARGET_OBS = \
>       mips-sde-tdep.o \
>       mips-tdep.o \
>       mips64-obsd-tdep.o \
>  +    ppc64-obsd-tdep.o \
> -     riscv-canonicalize-syscall-gen.o \
>       riscv-fbsd-tdep.o \
> +     riscv-linux-canonicalize-syscall-gen.o \
>       riscv-linux-tdep.o \
>       riscv-none-tdep.o \
>  +    riscv-obsd-tdep.o \
> @@ -33,7 +33,7 @@ Index: gdb/Makefile.in
>       rs6000-aix-tdep.h \
>       run-on-main-thread.h \
>       rust-exp.h \
> -@@ -1783,6 +1787,8 @@ ALLDEPFILES = \
> +@@ -1781,6 +1785,8 @@ ALLDEPFILES = \
>       aarch64-linux-nat.c \
>       aarch64-linux-tdep.c \
>       aarch64-newlib-tdep.c \
> @@ -41,8 +41,8 @@ Index: gdb/Makefile.in
>  +    aarch64-obsd-tdep.c \
>       aarch64-ravenscar-thread.c \
>       aarch64-tdep.c \
> -     aix-thread.c \
> -@@ -1822,6 +1828,7 @@ ALLDEPFILES = \
> +     aarch64-windows-nat.c \
> +@@ -1823,6 +1829,7 @@ ALLDEPFILES = \
>       arm-netbsd-nat.c \
>       arm-netbsd-tdep.c \
>       arm-none-tdep.c \
> @@ -50,7 +50,7 @@ Index: gdb/Makefile.in
>       arm-obsd-tdep.c \
>       arm-tdep.c \
>       avr-tdep.c \
> -@@ -1922,6 +1929,8 @@ ALLDEPFILES = \
> +@@ -1924,6 +1931,8 @@ ALLDEPFILES = \
>       ppc-ravenscar-thread.c \
>       ppc-sysv-tdep.c \
>       ppc64-tdep.c \
> @@ -59,7 +59,7 @@ Index: gdb/Makefile.in
>       procfs.c \
>       ravenscar-thread.c \
>       remote-sim.c \
> -@@ -1932,6 +1941,8 @@ ALLDEPFILES = \
> +@@ -1935,6 +1944,8 @@ ALLDEPFILES = \
>       riscv-none-tdep.c \
>       riscv-ravenscar-thread.c \
>       riscv-tdep.c \
> Index: patches/patch-gdb_aarch64-obsd-nat_c
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/patches/patch-gdb_aarch64-obsd-nat_c,v
> diff -u -p -r1.6 patch-gdb_aarch64-obsd-nat_c
> --- patches/patch-gdb_aarch64-obsd-nat_c      15 Jan 2026 12:03:34 -0000      
> 1.6
> +++ patches/patch-gdb_aarch64-obsd-nat_c      25 Sep 2026 16:56:23 -0000
> @@ -1,7 +1,7 @@
>  Index: gdb/aarch64-obsd-nat.c
>  --- gdb/aarch64-obsd-nat.c.orig
>  +++ gdb/aarch64-obsd-nat.c
> -@@ -0,0 +1,169 @@
> +@@ -0,0 +1,168 @@
>  +/* Native-dependent code for OpenBSD/aarch64.
>  +
>  +   Copyright (C) 2017-2020 Free Software Foundation, Inc.
> @@ -21,7 +21,6 @@ Index: gdb/aarch64-obsd-nat.c
>  +   You should have received a copy of the GNU General Public License
>  +   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
>  +
> -+#include "defs.h"
>  +#include "gdbarch.h"
>  +#include "regcache.h"
>  +#include "target.h"
> Index: patches/patch-gdb_aarch64-obsd-tdep_c
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/patches/patch-gdb_aarch64-obsd-tdep_c,v
> diff -u -p -r1.7 patch-gdb_aarch64-obsd-tdep_c
> --- patches/patch-gdb_aarch64-obsd-tdep_c     15 Jan 2026 12:03:34 -0000      
> 1.7
> +++ patches/patch-gdb_aarch64-obsd-tdep_c     25 Sep 2026 16:56:23 -0000
> @@ -1,7 +1,7 @@
>  Index: gdb/aarch64-obsd-tdep.c
>  --- gdb/aarch64-obsd-tdep.c.orig
>  +++ gdb/aarch64-obsd-tdep.c
> -@@ -0,0 +1,336 @@
> +@@ -0,0 +1,335 @@
>  +/* Target-dependent code for OpenBSD/aarch64.
>  +
>  +   Copyright (C) 2006-2017 Free Software Foundation, Inc.
> @@ -21,7 +21,6 @@ Index: gdb/aarch64-obsd-tdep.c
>  +   You should have received a copy of the GNU General Public License
>  +   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
>  +
> -+#include "defs.h"
>  +#include "extract-store-integer.h"
>  +#include "gdbarch.h"
>  +#include "frame-unwind.h"
> Index: patches/patch-gdb_cli_cli-cmds_c
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/patches/patch-gdb_cli_cli-cmds_c,v
> diff -u -p -r1.5 patch-gdb_cli_cli-cmds_c
> --- patches/patch-gdb_cli_cli-cmds_c  15 Jan 2026 12:03:34 -0000      1.5
> +++ patches/patch-gdb_cli_cli-cmds_c  25 Sep 2026 16:56:23 -0000
> @@ -1,7 +1,7 @@
>  Index: gdb/cli/cli-cmds.c
>  --- gdb/cli/cli-cmds.c.orig
>  +++ gdb/cli/cli-cmds.c
> -@@ -1068,7 +1068,7 @@ edit_command (const char *arg, int from_tty)
> +@@ -1075,7 +1075,7 @@ edit_command (const char *arg, int from_tty)
>       }
>   
>     if ((editor = getenv ("EDITOR")) == NULL)
> Index: patches/patch-gdb_configure_host
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/patches/patch-gdb_configure_host,v
> diff -u -p -r1.6 patch-gdb_configure_host
> --- patches/patch-gdb_configure_host  14 Jun 2025 11:25:54 -0000      1.6
> +++ patches/patch-gdb_configure_host  25 Sep 2026 16:56:23 -0000
> @@ -4,15 +4,15 @@ Use OpenBSD-specific files for arm (TBD)
>  Index: gdb/configure.host
>  --- gdb/configure.host.orig
>  +++ gdb/configure.host
> -@@ -81,6 +81,7 @@ case "${host}" in
> - 
> - aarch64*-*-linux*)  gdb_host=linux ;;
> - aarch64*-*-freebsd*)        gdb_host=fbsd ;;
> +@@ -85,6 +85,7 @@ aarch64*-*-freebsd*)       gdb_host=fbsd ;;
> + aarch64*-*-mingw*)  gdb_host=mingw64a
> +                     gdb_host_obs=mingw-hdep.o
> +                     ;;
>  +aarch64*-*-openbsd*)        gdb_host=obsd64 ;;
>   
>   alpha*-*-linux*)    gdb_host=alpha-linux ;;
>   alpha*-*-netbsdaout* | alpha*-*-knetbsdaout*-gnu)
> -@@ -93,7 +94,7 @@ arm*-*-freebsd*)   gdb_host=fbsd ;;
> +@@ -97,7 +98,7 @@ arm*-*-freebsd*)   gdb_host=fbsd ;;
>   arm*-*-linux*)              gdb_host=linux ;;
>   arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
>                       gdb_host=nbsdelf ;;
> @@ -21,7 +21,7 @@ Index: gdb/configure.host
>   
>   hppa*-*-linux*)             gdb_host=linux ;;
>   hppa*-*-netbsd*)    gdb_host=nbsd ;;
> -@@ -140,12 +141,14 @@ powerpc*-*-freebsd*)   gdb_host=fbsd ;;
> +@@ -146,12 +147,14 @@ powerpc*-*-freebsd*)   gdb_host=fbsd ;;
>   powerpc-*-netbsdaout* | powerpc-*-knetbsd*-gnu)
>                       gdb_host=nbsd ;;
>   powerpc-*-openbsd*) gdb_host=obsd ;;
> Index: patches/patch-gdb_configure_nat
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/patches/patch-gdb_configure_nat,v
> diff -u -p -r1.7 patch-gdb_configure_nat
> --- patches/patch-gdb_configure_nat   15 Jan 2026 12:03:34 -0000      1.7
> +++ patches/patch-gdb_configure_nat   25 Sep 2026 16:56:23 -0000
> @@ -23,7 +23,7 @@ Index: gdb/configure.nat
>       ;;
>       cygwin*)
>       NATDEPFILES='x86-nat.o nat/x86-dregs.o windows-nat.o nat/windows-nat.o'
> -@@ -449,50 +449,60 @@ case ${gdb_host} in
> +@@ -461,50 +461,60 @@ case ${gdb_host} in
>       ;;
>       obsd)
>       case ${gdb_host_cpu} in
> Index: patches/patch-gdb_configure_tgt
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/patches/patch-gdb_configure_tgt,v
> diff -u -p -r1.8 patch-gdb_configure_tgt
> --- patches/patch-gdb_configure_tgt   15 Jan 2026 12:03:34 -0000      1.8
> +++ patches/patch-gdb_configure_tgt   25 Sep 2026 16:56:23 -0000
> @@ -3,9 +3,9 @@ Add support for aarch64, powerpc64 and r
>  Index: gdb/configure.tgt
>  --- gdb/configure.tgt.orig
>  +++ gdb/configure.tgt
> -@@ -155,6 +155,13 @@ aarch64*-*-linux*)
> -                     symfile-mem.o linux-record.o"
> -     ;;
> +@@ -160,6 +160,13 @@ aarch64-*-mingw*)
> +     gdb_target_obs="aarch64-windows-tdep.o windows-tdep.o"
> +         ;;
>   
>  +aarch64*-*-openbsd*)
>  +    # Target: OpenBSD/arm64
> @@ -16,8 +16,8 @@ Index: gdb/configure.tgt
>  +
>   alpha*-*-linux*)
>       # Target: Little-endian Alpha running Linux
> -     gdb_target_obs="alpha-mdebug-tdep.o alpha-linux-tdep.o \
> -@@ -503,6 +510,12 @@ powerpc-*-openbsd*)
> +     gdb_target_obs="alpha-linux-tdep.o \
> +@@ -509,6 +516,12 @@ powerpc-*-openbsd*)
>       gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-obsd-tdep.o \
>                       ravenscar-thread.o ppc-ravenscar-thread.o"
>       ;;
> @@ -26,13 +26,13 @@ Index: gdb/configure.tgt
>  +    gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \
>  +                    ppc64-obsd-tdep.o obsd-tdep.o solib-svr4.o \
>  +                    ravenscar-thread.o ppc-ravenscar-thread.o"
> -+    ;;
> ++    ;;
>   powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
>       # Target: PowerPC running AIX
>       gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o \
> -@@ -551,6 +564,12 @@ riscv*-*-linux*)
> -                     symfile-mem.o \
> -                     linux-record.o svr4-tls-tdep.o"
> +@@ -549,6 +562,12 @@ riscv*-*-freebsd*)
> +     # Target: FreeBSD/riscv
> +     gdb_target_obs="riscv-fbsd-tdep.o"
>       ;;
>  +
>  +riscv*-*-openbsd*)
> @@ -41,5 +41,5 @@ Index: gdb/configure.tgt
>  +    gdb_target_obs="riscv-obsd-tdep.o"
>  +    ;;
>   
> - riscv*-*-*)
> -     # Target: RISC-V architecture
> + riscv*-*-linux*)
> +     # Target: Linux/RISC-V
> Index: patches/patch-gdb_data-directory_Makefile_in
> ===================================================================
> RCS file: 
> /home/cvs/ports/devel/gdb/patches/patch-gdb_data-directory_Makefile_in,v
> diff -u -p -r1.15 patch-gdb_data-directory_Makefile_in
> --- patches/patch-gdb_data-directory_Makefile_in      15 Jan 2026 12:03:34 
> -0000      1.15
> +++ patches/patch-gdb_data-directory_Makefile_in      25 Sep 2026 16:56:23 
> -0000
> @@ -1,7 +1,7 @@
>  Index: gdb/data-directory/Makefile.in
>  --- gdb/data-directory/Makefile.in.orig
>  +++ gdb/data-directory/Makefile.in
> -@@ -232,7 +232,7 @@ stamp-syscalls: Makefile $(SYSCALLS_FILES)
> +@@ -233,7 +233,7 @@ stamp-syscalls: Makefile $(SYSCALLS_FILES)
>       for file in $$files ; do \
>         f=$(SYSCALLS_SRCDIR)/$$file ; \
>         if test -f $$f ; then \
> @@ -10,7 +10,7 @@ Index: gdb/data-directory/Makefile.in
>         fi ; \
>       done
>       $(SILENCE) touch $@
> -@@ -275,8 +275,8 @@ stamp-python: Makefile $(PYTHON_FILES)
> +@@ -276,8 +276,8 @@ stamp-python: Makefile $(PYTHON_FILES)
>       if test "x$$files" != x ; then \
>         for file in $$files ; do \
>           dir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
> @@ -21,7 +21,7 @@ Index: gdb/data-directory/Makefile.in
>         done ; \
>       fi
>       $(SILENCE) touch $@
> -@@ -371,7 +371,7 @@ stamp-system-gdbinit: Makefile $(SYSTEM_GDBINIT_FILES)
> +@@ -372,7 +372,7 @@ stamp-system-gdbinit: Makefile $(SYSTEM_GDBINIT_FILES)
>       for file in $$files ; do \
>         f=$(SYSTEM_GDBINIT_SRCDIR)/$$file ; \
>         if test -f $$f ; then \
> Index: patches/patch-gdb_doc_gdb_info-2
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/patches/patch-gdb_doc_gdb_info-2,v
> diff -u -p -r1.5 patch-gdb_doc_gdb_info-2
> --- patches/patch-gdb_doc_gdb_info-2  22 May 2026 16:01:58 -0000      1.5
> +++ patches/patch-gdb_doc_gdb_info-2  25 Sep 2026 16:56:23 -0000
> @@ -1,7 +1,7 @@
>  Index: gdb/doc/gdb.info-2
>  --- gdb/doc/gdb.info-2.orig
>  +++ gdb/doc/gdb.info-2
> -@@ -1250,7 +1250,7 @@ parts of the program:
> +@@ -1775,7 +1775,7 @@ parts of the program:
>   --------------------------
>   
>   You can customize GDB to use any editor you want (1).  By default, it is
> Index: patches/patch-gdb_inflow_c
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/patches/patch-gdb_inflow_c,v
> diff -u -p -r1.2 patch-gdb_inflow_c
> --- patches/patch-gdb_inflow_c        15 Jan 2026 12:03:34 -0000      1.2
> +++ patches/patch-gdb_inflow_c        25 Sep 2026 16:56:23 -0000
> @@ -3,7 +3,7 @@ Pass SIGINT to attached inferior
>  Index: gdb/inflow.c
>  --- gdb/inflow.c.orig
>  +++ gdb/inflow.c
> -@@ -899,7 +899,10 @@ static void
> +@@ -893,7 +893,10 @@ static void
>   pass_signal (int signo)
>   {
>   #ifndef _WIN32
> Index: patches/patch-gdb_obsd-nat_c
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/patches/patch-gdb_obsd-nat_c,v
> diff -u -p -r1.2 patch-gdb_obsd-nat_c
> --- patches/patch-gdb_obsd-nat_c      13 Dec 2025 21:18:09 -0000      1.2
> +++ patches/patch-gdb_obsd-nat_c      25 Sep 2026 16:56:23 -0000
> @@ -11,7 +11,7 @@ Index: gdb/obsd-nat.c
>   
>   /* OpenBSD 5.2 and later include rthreads which uses a thread model
>      that maps userland threads directly onto kernel threads in a 1:1
> -@@ -42,34 +43,78 @@ obsd_nat_target::pid_to_str (ptid_t ptid)
> +@@ -42,34 +43,79 @@ obsd_nat_target::pid_to_str (ptid_t ptid)
>     return normal_pid_to_str (ptid);
>   }
>   
> @@ -31,7 +31,7 @@ Index: gdb/obsd-nat.c
>  -  pid_t pid = inferior_ptid.pid ();
>     struct ptrace_thread_state pts;
>   
> --  prune_threads ();
> +-  prune_threads (this);
>  -
>     if (ptrace (PT_GET_THREAD_FIRST, pid, (caddr_t)&pts, sizeof pts) == -1)
>       perror_with_name (("ptrace"));
> @@ -57,7 +57,7 @@ Index: gdb/obsd-nat.c
>  +  return false;
>   }
>   
> -+/* Fuction to support executing callback for each alive thread */
> ++/* Function to support executing callback for each alive thread */
>  +
>  +static void
>  +for_each_thread (pid_t pid, gdb::function_view<void (ptid_t)> callback)
> @@ -98,14 +98,15 @@ Index: gdb/obsd-nat.c
>  +{
>  +  pid_t pid = inferior_ptid.pid ();
>  +
> -+  prune_threads ();
> ++  prune_threads (this);
>  +  obsd_add_threads (this, pid);
>  +}
>  +
> ++
>   /* Enable additional event reporting on a new or existing process.  */
>   
>   static void
> -@@ -143,6 +188,7 @@ void
> +@@ -143,6 +189,7 @@ void
>   obsd_nat_target::post_attach (int pid)
>   {
>     obsd_enable_proc_events (pid);
> @@ -113,7 +114,7 @@ Index: gdb/obsd-nat.c
>   }
>   
>   /* Implement the virtual inf_ptrace_target::post_startup_inferior method.  
> */
> -@@ -183,4 +229,48 @@ int
> +@@ -183,4 +230,48 @@ int
>   obsd_nat_target::remove_fork_catchpoint (int pid)
>   {
>     return 0;
> Index: patches/patch-gdb_ppc64-obsd-nat_c
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/patches/patch-gdb_ppc64-obsd-nat_c,v
> diff -u -p -r1.4 patch-gdb_ppc64-obsd-nat_c
> --- patches/patch-gdb_ppc64-obsd-nat_c        15 Jan 2026 12:03:34 -0000      
> 1.4
> +++ patches/patch-gdb_ppc64-obsd-nat_c        25 Sep 2026 16:56:23 -0000
> @@ -1,7 +1,7 @@
>  Index: gdb/ppc64-obsd-nat.c
>  --- gdb/ppc64-obsd-nat.c.orig
>  +++ gdb/ppc64-obsd-nat.c
> -@@ -0,0 +1,211 @@
> +@@ -0,0 +1,210 @@
>  +/* Native-dependent code for OpenBSD/powerpc64.
>  +
>  +   Copyright (C) 2004-2020 Free Software Foundation, Inc.
> @@ -21,7 +21,6 @@ Index: gdb/ppc64-obsd-nat.c
>  +   You should have received a copy of the GNU General Public License
>  +   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
>  +
> -+#include "defs.h"
>  +#include "gdbcore.h"
>  +#include "inferior.h"
>  +#include "regcache.h"
> Index: patches/patch-gdb_ppc64-obsd-tdep_c
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/patches/patch-gdb_ppc64-obsd-tdep_c,v
> diff -u -p -r1.6 patch-gdb_ppc64-obsd-tdep_c
> --- patches/patch-gdb_ppc64-obsd-tdep_c       15 Jan 2026 12:03:34 -0000      
> 1.6
> +++ patches/patch-gdb_ppc64-obsd-tdep_c       25 Sep 2026 16:56:23 -0000
> @@ -1,7 +1,7 @@
>  Index: gdb/ppc64-obsd-tdep.c
>  --- gdb/ppc64-obsd-tdep.c.orig
>  +++ gdb/ppc64-obsd-tdep.c
> -@@ -0,0 +1,408 @@
> +@@ -0,0 +1,407 @@
>  +/* Target-dependent code for OpenBSD/powerpc64.
>  +
>  +   Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
> @@ -23,7 +23,6 @@ Index: gdb/ppc64-obsd-tdep.c
>  +   Foundation, Inc., 51 Franklin Street, Fifth Floor,
>  +   Boston, MA 02110-1301, USA.  */
>  +
> -+#include "defs.h"
>  +#include "extract-store-integer.h"
>  +#include "gdbarch.h"
>  +#include "arch-utils.h"
> Index: patches/patch-gdb_riscv-obsd-nat_c
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/patches/patch-gdb_riscv-obsd-nat_c,v
> diff -u -p -r1.3 patch-gdb_riscv-obsd-nat_c
> --- patches/patch-gdb_riscv-obsd-nat_c        15 Jan 2026 12:03:34 -0000      
> 1.3
> +++ patches/patch-gdb_riscv-obsd-nat_c        25 Sep 2026 16:56:23 -0000
> @@ -1,7 +1,7 @@
>  Index: gdb/riscv-obsd-nat.c
>  --- gdb/riscv-obsd-nat.c.orig
>  +++ gdb/riscv-obsd-nat.c
> -@@ -0,0 +1,134 @@
> +@@ -0,0 +1,133 @@
>  +/* Native-dependent code for OpenBSD/riscv64.
>  +
>  +   Copyright (C) 2018-2021 Free Software Foundation, Inc.
> @@ -21,7 +21,6 @@ Index: gdb/riscv-obsd-nat.c
>  +   You should have received a copy of the GNU General Public License
>  +   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
>  +
> -+#include "defs.h"
>  +#include "regcache.h"
>  +#include "target.h"
>  +
> Index: patches/patch-gdb_riscv-obsd-tdep_c
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/patches/patch-gdb_riscv-obsd-tdep_c,v
> diff -u -p -r1.5 patch-gdb_riscv-obsd-tdep_c
> --- patches/patch-gdb_riscv-obsd-tdep_c       15 Jan 2026 12:03:34 -0000      
> 1.5
> +++ patches/patch-gdb_riscv-obsd-tdep_c       25 Sep 2026 16:56:23 -0000
> @@ -1,7 +1,7 @@
>  Index: gdb/riscv-obsd-tdep.c
>  --- gdb/riscv-obsd-tdep.c.orig
>  +++ gdb/riscv-obsd-tdep.c
> -@@ -0,0 +1,216 @@
> +@@ -0,0 +1,215 @@
>  +/* Target-dependent code for OpenBSD on RISC-V processors.
>  +   Copyright (C) 2018-2021 Free Software Foundation, Inc.
>  +
> @@ -20,7 +20,6 @@ Index: gdb/riscv-obsd-tdep.c
>  +   You should have received a copy of the GNU General Public License
>  +   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
>  +
> -+#include "defs.h"
>  +#include "extract-store-integer.h"
>  +#include "obsd-tdep.h"
>  +#include "osabi.h"
> Index: patches/patch-include_elf_common_h
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/patches/patch-include_elf_common_h,v
> diff -u -p -r1.5 patch-include_elf_common_h
> --- patches/patch-include_elf_common_h        15 Jan 2026 12:03:34 -0000      
> 1.5
> +++ patches/patch-include_elf_common_h        25 Sep 2026 16:56:23 -0000
> @@ -1,7 +1,7 @@
>  Index: include/elf/common.h
>  --- include/elf/common.h.orig
>  +++ include/elf/common.h
> -@@ -815,6 +815,7 @@
> +@@ -836,6 +836,7 @@
>   #define NT_OPENBSD_FPREGS   21
>   #define NT_OPENBSD_XFPREGS  22
>   #define NT_OPENBSD_WCOOKIE  23
> Index: pkg/PLIST
> ===================================================================
> RCS file: /home/cvs/ports/devel/gdb/pkg/PLIST,v
> diff -u -p -r1.33 PLIST
> --- pkg/PLIST 26 Feb 2026 17:41:19 -0000      1.33
> +++ pkg/PLIST 25 Sep 2026 16:56:23 -0000
> @@ -6,9 +6,8 @@ include/gdb/jit-reader.h
>  @comment @info info/bfd.info
>  @comment @info info/ctf-spec.info
>  @info info/gdb.info
> -@comment @info info/sframe-spec.info
> -@info info/stabs.info
>  @comment lib/charset.alias
> +@comment @info info/sframe-spec.info
>  @man man/man1/egdb-add-index.1
>  @man man/man1/egdb.1
>  @man man/man1/egdbserver.1
> @@ -198,6 +197,7 @@ share/gdb/syscalls/mips-o32-linux.xml
>  share/gdb/syscalls/netbsd.xml
>  share/gdb/syscalls/ppc-linux.xml
>  share/gdb/syscalls/ppc64-linux.xml
> +share/gdb/syscalls/riscv-linux.xml
>  share/gdb/syscalls/s390-linux.xml
>  share/gdb/syscalls/s390x-linux.xml
>  share/gdb/syscalls/sparc-linux.xml
> 

Reply via email to