aboutsummaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r--gdb/procfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c
index 7344304..34515a0 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -30,6 +30,7 @@
#include "gdbthread.h"
#include "regcache.h"
#include "inf-child.h"
+#include "nat/fork-inferior.h"
#include "filestuff.h"
#if defined (NEW_PROC_API)
@@ -5121,7 +5122,7 @@ procfs_info_proc (struct target_ops *ops, const char *args,
old_chain = make_cleanup (null_cleanup, 0);
gdb_argv built_argv (args);
- for (char *arg : argv)
+ for (char *arg : built_argv)
{
if (isdigit (arg[0]))
{