aboutsummaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2022-03-31 10:34:52 +0200
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2022-03-31 10:34:52 +0200
commit5530c021ce01abf368a9cde26b22c4b34f320ee8 (patch)
tree6d677697713219f1dfb90af2a7227a7ac5349bf8 /gdb/procfs.c
parent07e9e57ca6d17e691377531a684a054287e7f7c0 (diff)
downloadgdb-5530c021ce01abf368a9cde26b22c4b34f320ee8.zip
gdb-5530c021ce01abf368a9cde26b22c4b34f320ee8.tar.gz
gdb-5530c021ce01abf368a9cde26b22c4b34f320ee8.tar.bz2
Fix procfs.c compilation
procfs.c doesn't compile on Solaris: /vol/src/gnu/gdb/hg/master/local/gdb/procfs.c: In member function ‘virtual bool procfs_target::info_proc(const char*, info_proc_what)’: /vol/src/gnu/gdb/hg/master/local/gdb/procfs.c:3302:3: error: ‘gdb_argv’ was not declared in this scope 3302 | gdb_argv built_argv (args); | ^~~~~~~~ /vol/src/gnu/gdb/hg/master/local/gdb/procfs.c:3303:20: error: ‘built_argv’ was not declared in this scope; did you mean ‘buildargv’? 3303 | for (char *arg : built_argv) | ^~~~~~~~~~ | buildargv Fixed by including "gdbsupport/buildargv.h". Tested on amd64-pc-solaris2.11, sparcv9-sun-solaris2.11.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r--gdb/procfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c
index 584833a..f6ca134 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -45,6 +45,7 @@
#include "observable.h"
#include "gdbsupport/scoped_fd.h"
#include "gdbsupport/pathstuff.h"
+#include "gdbsupport/buildargv.h"
/* This module provides the interface between GDB and the
/proc file system, which is used on many versions of Unix