NetBSD Problem Report #60362
From martin@duskware.de Wed Jun 24 10:20:41 2026
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.netbsd.org", Issuer "R13" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 66BBB1A923A
for <gnats-bugs@gnats.NetBSD.org>; Wed, 24 Jun 2026 10:20:41 +0000 (UTC)
Message-Id: <20260624102038.A1361E1FDDD@mail.duskware.de>
Date: Wed, 24 Jun 2026 12:20:33 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: gdb can not insert breakpoints on aarch64
X-Send-Pr-Version: 3.95
X-From4GNATS: "martin@NetBSD.org via gnats" <gnats-admin@NetBSD.org>
>Number: 60362
>Category: toolchain
>Synopsis: gdb can not insert breakpoints on aarch64
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: skrll
>State: feedback
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 24 10:25:00 +0000 2026
>Closed-Date:
>Last-Modified: Fri Jul 10 17:37:58 +0000 2026
>Originator: Martin Husemann
>Release: NetBSD 11.99.6
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD out-of-the-silent-planet.aprisoft.de 11.99.6 NetBSD 11.99.6 (GENERIC64) #558: Wed Jun 10 10:10:05 CEST 2026 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/evbarm/compile/GENERIC64 evbarm
Architecture: aarch64
Machine: evbarm
>Description:
Try to run a program under gdb with breakpoints:
> gdb ls
gdb: warning: A handler for the OS ABI "NetBSD" is not built into this configuration
of GDB. Attempting to continue with the default aarch64 settings.
GNU gdb (GDB) 17.1
[..]
Reading symbols from ls...
Reading symbols from /usr/libdata/debug/bin/ls.debug...
(gdb) break main
Breakpoint 1 at 0x4d40: file /work/src/bin/ls/main.c, line 48.
(gdb) run
Starting program: /bin/ls
Warning:
Cannot insert breakpoint 1.
Cannot access memory at address 0x4d40
>How-To-Repeat:
s/a
>Fix:
n/a
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: toolchain-manager->skrll
Responsible-Changed-By: skrll@NetBSD.org
Responsible-Changed-When: Fri, 10 Jul 2026 10:25:54 +0000
Responsible-Changed-Why:
take
State-Changed-From-To: open->analyzed
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Fri, 10 Jul 2026 10:25:54 +0000
State-Changed-Why:
aarch64_nbsd_tdep isn't being initialized. I have a fix.
From: "Nick Hudson" <skrll@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60362 CVS commit: src/external/gpl3/gdb
Date: Fri, 10 Jul 2026 10:59:57 +0000
Module Name: src
Committed By: skrll
Date: Fri Jul 10 10:59:56 UTC 2026
Modified Files:
src/external/gpl3/gdb/dist/gdb: aarch64-netbsd-tdep.c
src/external/gpl3/gdb/lib/libgdb/arch/aarch64: init.c
Log Message:
PR/60362 (gdb can not insert breakpoints on aarch64)
Update aarch64-netbsd-tdep.c to use modern gdb initialisation method and
re-gen libgdb/arch/aarch64/init.c
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/dist/gdb/aarch64-netbsd-tdep.c
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/init.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: analyzed->feedback
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Fri, 10 Jul 2026 17:37:58 +0000
State-Changed-Why:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/dist/gdb/aarch64-netbsd-tdep.c
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/init.c
should fix it
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.