From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1147) id C69B9385E451; Thu, 31 Mar 2022 08:37:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C69B9385E451 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Rainer Orth To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Fix procfs.c compilation X-Act-Checkin: binutils-gdb X-Git-Author: Rainer Orth X-Git-Refname: refs/heads/master X-Git-Oldrev: 07e9e57ca6d17e691377531a684a054287e7f7c0 X-Git-Newrev: 5530c021ce01abf368a9cde26b22c4b34f320ee8 Message-Id: <20220331083718.C69B9385E451@sourceware.org> Date: Thu, 31 Mar 2022 08:37:18 +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: Thu, 31 Mar 2022 08:37:18 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D5530c021ce01= abf368a9cde26b22c4b34f320ee8 commit 5530c021ce01abf368a9cde26b22c4b34f320ee8 Author: Rainer Orth Date: Thu Mar 31 10:34:52 2022 +0200 Fix procfs.c compilation =20 procfs.c doesn't compile on Solaris: =20 /vol/src/gnu/gdb/hg/master/local/gdb/procfs.c: In member function =E2= =80=98virtual bool procfs_target::info_proc(const char*, info_proc_what)=E2= =80=99: /vol/src/gnu/gdb/hg/master/local/gdb/procfs.c:3302:3: error: =E2=80=98g= db_argv=E2=80=99 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: =E2=80=98= built_argv=E2=80=99 was not declared in this scope; did you mean =E2=80=98b= uildargv=E2=80=99? 3303 | for (char *arg : built_argv) | ^~~~~~~~~~ | buildargv =20 Fixed by including "gdbsupport/buildargv.h". =20 Tested on amd64-pc-solaris2.11, sparcv9-sun-solaris2.11. Diff: --- gdb/procfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb/procfs.c b/gdb/procfs.c index 584833a284e..f6ca1345a21 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" =20 /* This module provides the interface between GDB and the /proc file system, which is used on many versions of Unix