aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2016-12-22 09:20:00 -0500
committerSergio Durigan Junior <sergiodj@redhat.com>2017-03-07 15:39:35 -0500
commit1672e0d98d88d11b5c7d5793bd2cf29cbb56696f (patch)
tree9d01885db3367de7c7cd5718c1a689d444116461 /gdb/gdbserver
parentf7bb4e3a0d3738e8cce3dcded6ef12c9949cb85f (diff)
downloadgdb-1672e0d98d88d11b5c7d5793bd2cf29cbb56696f.zip
gdb-1672e0d98d88d11b5c7d5793bd2cf29cbb56696f.tar.gz
gdb-1672e0d98d88d11b5c7d5793bd2cf29cbb56696f.tar.bz2
Share gdb/environ.[ch] with gdbserver
We will need access to the environment functions when we share fork_inferior between GDB and gdbserver, therefore we simply make the API on gdb/environ.[ch] available on common/. No extra adjustments are needed to make it compile on gdbserver. gdb/ChangeLog: 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com> * Makefile.in (SFILES): Replace "environ.c" with "common/environ.c". (HFILES_NO_SRCDIR): Likewise, for "environ.h". * environ.c: Include "common-defs.h" instead of "defs.h. Moved to... * common/environ.c: ... here. * environ.h: Moved to... * common/environ.h: ... here. gdb/gdbserver/ChangeLog: 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com> * Makefile.in (SFILES): Add "common/environ.c". (OBJS): Add "common/environ.h".
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/Makefile.in5
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 79fe2f9..a3e60f8 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * Makefile.in (SFILES): Add "common/environ.c".
+ (OBJS): Add "common/environ.h".
+
2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
* configure.ac: Check if the fs_base and gs_base members of
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index c2354d2..1cccbbf 100644
--- a/gdb/gdbserver/Makefile.in
+++ b/gdb/gdbserver/Makefile.in
@@ -201,6 +201,7 @@ SFILES = \
$(srcdir)/common/common-regcache.c \
$(srcdir)/common/common-utils.c \
$(srcdir)/common/errors.c \
+ $(srcdir)/common/environ.c \
$(srcdir)/common/fileio.c \
$(srcdir)/common/filestuff.c \
$(srcdir)/common/gdb_vecs.c \
@@ -238,6 +239,7 @@ OBS = \
debug.o \
dll.o \
errors.o \
+ environ.o \
event-loop.o \
fileio.o \
filestuff.o \
@@ -782,6 +784,9 @@ agent.o: ../common/agent.c
errors.o: ../common/errors.c
$(COMPILE) $<
$(POSTCOMPILE)
+environ.o: ../common/environ.c
+ $(COMPILE) $<
+ $(POSTCOMPILE)
common-debug.o: ../common/common-debug.c
$(COMPILE) $<
$(POSTCOMPILE)