aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorEnze Li <enze.li@hotmail.com>2022-07-24 10:38:19 +0800
committerEnze Li <enze.li@hotmail.com>2022-07-26 20:24:23 +0800
commitde69cec0c53f1ef5cb242bfc969723b7dba4defb (patch)
tree63990bccd1ee71f7fac2dca733f83add5ec341f8 /gdb
parente8f4567b9c4ab13f16fa0e22e92d9b415aa4e679 (diff)
downloadfsf-binutils-gdb-de69cec0c53f1ef5cb242bfc969723b7dba4defb.zip
fsf-binutils-gdb-de69cec0c53f1ef5cb242bfc969723b7dba4defb.tar.gz
fsf-binutils-gdb-de69cec0c53f1ef5cb242bfc969723b7dba4defb.tar.bz2
gdb/netbsd: add missing header file
I ran into this error when building GDB on NetBSD: CXX netbsd-nat.o netbsd-nat.c: In member function 'virtual bool nbsd_nat_target::info_proc(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 () == 0) ^~~~~~~~~~ netbsd-nat.c:315:7: note: suggested alternative: 'buildargv' if (built_argv.count () == 0) ^~~~~~~~~~ buildargv gmake[2]: *** [Makefile:1893: netbsd-nat.o] Error 1 Fix this by adding the missing header file, as it is obvious. Tested by rebuilding on NetBSD/amd64.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/netbsd-nat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/netbsd-nat.c b/gdb/netbsd-nat.c
index c45df39..8a4a432 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"
#include <sys/types.h>
#include <sys/ptrace.h>