Share gdb/environ.[ch] with gdbserver
authorSergio Durigan Junior <sergiodj@redhat.com>
Thu, 22 Dec 2016 14:20:00 +0000 (09:20 -0500)
committerSergio Durigan Junior <sergiodj@redhat.com>
Tue, 7 Mar 2017 20:39:35 +0000 (15:39 -0500)
commit1672e0d98d88d11b5c7d5793bd2cf29cbb56696f
tree9d01885db3367de7c7cd5718c1a689d444116461
parentf7bb4e3a0d3738e8cce3dcded6ef12c9949cb85f
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".
gdb/ChangeLog
gdb/Makefile.in
gdb/common/environ.c [moved from gdb/environ.c with 99% similarity]
gdb/common/environ.h [moved from gdb/environ.h with 100% similarity]
gdb/gdbserver/ChangeLog
gdb/gdbserver/Makefile.in