From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1147) id 803663853809; Thu, 31 Mar 2022 08:38:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 803663853809 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/gdb-12-branch] Fix procfs.c compilation X-Act-Checkin: binutils-gdb X-Git-Author: Rainer Orth X-Git-Refname: refs/heads/gdb-12-branch X-Git-Oldrev: 95c82cbf7e78506e7cc2ec249399ec80bba80ed3 X-Git-Newrev: 09ab0d2eecfbcb5ac68617fd356c9f8067b07769 Message-Id: <20220331083820.803663853809@sourceware.org> Date: Thu, 31 Mar 2022 08:38:20 +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:38:20 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D09ab0d2eecfb= cb5ac68617fd356c9f8067b07769 commit 09ab0d2eecfbcb5ac68617fd356c9f8067b07769 Author: Rainer Orth Date: Thu Mar 31 10:38:01 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 840201d1897..6b269b658e2 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