]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Provide get_shell declaration in procfs.c
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 29 Oct 2018 09:28:40 +0000 (10:28 +0100)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 29 Oct 2018 09:28:40 +0000 (10:28 +0100)
The Solaris build is currently broken:

/vol/src/gnu/gdb/hg/master/dist/gdb/procfs.c: In member function ‘virtual void procfs_target::create_inferior(const char*, const string&, char**, int)’:
/vol/src/gnu/gdb/hg/master/dist/gdb/procfs.c:3038:28: error: ‘get_shell’ was not declared in this scope
   const char *shell_file = get_shell ();
                            ^~~~~~~~~
/vol/src/gnu/gdb/hg/master/dist/gdb/procfs.c:3038:28: note: suggested alternative: ‘getusershell’
   const char *shell_file = get_shell ();
                            ^~~~~~~~~
                            getusershell

The following patch fixes this.  Tested on amd64-pc-solaris2.11.

2018-10-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

* procfs.c: Include common/pathstuff.h.

gdb/ChangeLog
gdb/procfs.c

index 2d89f831116e25b4d799052525c19d8a4e892850..1cba619fd9922b77261744db6c976c4a15fe12b1 100644 (file)
@@ -1,10 +1,14 @@
+2018-10-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * procfs.c: Include common/pathstuff.h.
+
 2018-10-29   John Darrington <john@darrington.wattle.id.au>
 
        * configure.ac: New test HAVE_AF_LOCAL
-       * common/netstuff.c (parse_connection_spec) [prefixes]: Only compile "unix:"
-       if HAVE_AF_LOCAL is true.
-       * configure: regenerate.
-       * config.in: regenerate.
+       * common/netstuff.c (parse_connection_spec) [prefixes]: Only
+       compile "unix:" if HAVE_AF_LOCAL is true.
+       * configure: Regenerate.
+       * config.in: Regenerate.
 
 2018-10-28  Andrew Burgess  <andrew.burgess@embecosm.com>
 
index ca381a71ae575a1ed7339f60f156ae8662607547..0d8f9df966511e7ca8bdb9254c1a9ee2fe417311 100644 (file)
@@ -47,6 +47,7 @@
 #include "procfs.h"
 #include "observable.h"
 #include "common/scoped_fd.h"
+#include "common/pathstuff.h"
 
 /* This module provides the interface between GDB and the
    /proc file system, which is used on many versions of Unix