From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7872) id A1EE33858D32; Tue, 26 Jul 2022 12:24:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A1EE33858D32 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Enze Li To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/netbsd: add missing header file X-Act-Checkin: binutils-gdb X-Git-Author: Enze Li X-Git-Refname: refs/heads/master X-Git-Oldrev: e8f4567b9c4ab13f16fa0e22e92d9b415aa4e679 X-Git-Newrev: de69cec0c53f1ef5cb242bfc969723b7dba4defb Message-Id: <20220726122442.A1EE33858D32@sourceware.org> Date: Tue, 26 Jul 2022 12:24:42 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jul 2022 12:24:42 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dde69cec0c53f= 1ef5cb242bfc969723b7dba4defb commit de69cec0c53f1ef5cb242bfc969723b7dba4defb Author: Enze Li Date: Sun Jul 24 10:38:19 2022 +0800 gdb/netbsd: add missing header file =20 I ran into this error when building GDB on NetBSD: =20 CXX netbsd-nat.o netbsd-nat.c: In member function 'virtual bool nbsd_nat_target::info_pr= oc(const char*, info_proc_what)': netbsd-nat.c:314:3: error: 'gdb_argv' was not declared in this scope gdb_argv built_argv (args); ^~~~~~~~ netbsd-nat.c:314:3: note: suggested alternative: 'gdbarch' gdb_argv built_argv (args); ^~~~~~~~ gdbarch netbsd-nat.c:315:7: error: 'built_argv' was not declared in this scope if (built_argv.count () =3D=3D 0) ^~~~~~~~~~ netbsd-nat.c:315:7: note: suggested alternative: 'buildargv' if (built_argv.count () =3D=3D 0) ^~~~~~~~~~ buildargv gmake[2]: *** [Makefile:1893: netbsd-nat.o] Error 1 =20 Fix this by adding the missing header file, as it is obvious. =20 Tested by rebuilding on NetBSD/amd64. Diff: --- gdb/netbsd-nat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb/netbsd-nat.c b/gdb/netbsd-nat.c index c45df391afc..8a4a43270d6 100644 --- a/gdb/netbsd-nat.c +++ b/gdb/netbsd-nat.c @@ -25,6 +25,7 @@ #include "netbsd-tdep.h" #include "inferior.h" #include "gdbarch.h" +#include "gdbsupport/buildargv.h" =20 #include #include