aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-10-01 06:52:44 -0600
committerTom Tromey <tromey@adacore.com>2019-10-02 13:43:41 -0600
commit80fd2826411c1033ec403658c5f3187bf9c1740a (patch)
tree7f5b7411ebaee9dbd719e0f6e0f2c0667c8f1dd6 /gdb/gdbserver
parent700545387df82388b054947dc74cc0bb5cbd2a60 (diff)
downloadgdb-80fd2826411c1033ec403658c5f3187bf9c1740a.zip
gdb-80fd2826411c1033ec403658c5f3187bf9c1740a.tar.gz
gdb-80fd2826411c1033ec403658c5f3187bf9c1740a.tar.bz2
Fix type of startup_with_shell in gdbserver
startup_with_shell was changed to be of "bool" type, but I noticed that the definition in gdbserver disagreed. This disagreement caused some regressions on a big-endian machine. This patch removes the redundant declaration and definition of startup_with_shell and ensures that such clashes will be diagnosed. This moves the declaration to common-inferior.h, and introduces a new common-inferior.c, as suggested by Pedro. gdb/ChangeLog 2019-10-02 Tom Tromey <tromey@adacore.com> * Makefile.in (COMMON_SFILES): Add common-inferior.c. * gdbsupport/common-inferior.c: New file. * infcmd.c (startup_with_shell): Don't define. * nat/fork-inferior.h (startup_with_shell): Don't declare. * gdbsupport/common-inferior.h (startup_with_shell): Declare. * inferior.h (startup_with_shell): Don't declare. gdb/gdbserver/ChangeLog 2019-10-02 Tom Tromey <tromey@adacore.com> * Makefile.in (SFILES): Add common-inferior.c. (OBS): Add common-inferior.o. * server.c (startup_with_shell): Don't define.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog6
-rw-r--r--gdb/gdbserver/Makefile.in2
-rw-r--r--gdb/gdbserver/server.c6
3 files changed, 8 insertions, 6 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 7eef2c5..0108d6d 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,9 @@
+2019-10-02 Tom Tromey <tromey@adacore.com>
+
+ * Makefile.in (SFILES): Add common-inferior.c.
+ (OBS): Add common-inferior.o.
+ * server.c (startup_with_shell): Don't define.
+
2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
* linux-low.c (linux_low_read_btrace): Update for change to
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index ca0a4cb..d79424b 100644
--- a/gdb/gdbserver/Makefile.in
+++ b/gdb/gdbserver/Makefile.in
@@ -203,6 +203,7 @@ SFILES = \
$(srcdir)/gdbsupport/cleanups.c \
$(srcdir)/gdbsupport/common-debug.c \
$(srcdir)/gdbsupport/common-exceptions.c \
+ $(srcdir)/gdbsupport/common-inferior.c \
$(srcdir)/gdbsupport/common-regcache.c \
$(srcdir)/gdbsupport/common-utils.c \
$(srcdir)/gdbsupport/errors.c \
@@ -248,6 +249,7 @@ OBS = \
gdbsupport/cleanups.o \
gdbsupport/common-debug.o \
gdbsupport/common-exceptions.o \
+ gdbsupport/common-inferior.o \
gdbsupport/job-control.o \
gdbsupport/common-regcache.o \
gdbsupport/common-utils.o \
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index 67e8e3e..8ee5518 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -67,12 +67,6 @@ char *current_directory;
static gdb_environ our_environ;
-/* Start the inferior using a shell. */
-
-/* We always try to start the inferior using a shell. */
-
-int startup_with_shell = 1;
-
int server_waiting;
static int extended_protocol;