diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2022-03-31 10:38:01 +0200 |
---|---|---|
committer | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2022-03-31 10:38:01 +0200 |
commit | 09ab0d2eecfbcb5ac68617fd356c9f8067b07769 (patch) | |
tree | d27dad2f955de2f9956c5376c0ac7ff4e5b4ec83 | |
parent | 95c82cbf7e78506e7cc2ec249399ec80bba80ed3 (diff) | |
download | gdb-09ab0d2eecfbcb5ac68617fd356c9f8067b07769.zip gdb-09ab0d2eecfbcb5ac68617fd356c9f8067b07769.tar.gz gdb-09ab0d2eecfbcb5ac68617fd356c9f8067b07769.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.
-rw-r--r-- | gdb/procfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index 840201d..6b269b6 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 |