diff options
author | Sergio Durigan Junior <sergiodj@redhat.com> | 2016-12-22 09:20:00 -0500 |
---|---|---|
committer | Sergio Durigan Junior <sergiodj@redhat.com> | 2017-03-07 15:39:35 -0500 |
commit | 1672e0d98d88d11b5c7d5793bd2cf29cbb56696f (patch) | |
tree | 9d01885db3367de7c7cd5718c1a689d444116461 /gdb/Makefile.in | |
parent | f7bb4e3a0d3738e8cce3dcded6ef12c9949cb85f (diff) |
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/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 268c2c6ead..08187427cd 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1061,7 +1061,6 @@ SFILES = \ dwarf2loc.c \ dwarf2read.c \ elfread.c \ - environ.c \ eval.c \ event-loop.c \ event-top.c \ @@ -1207,6 +1206,7 @@ SFILES = \ common/common-regcache.c \ common/common-utils.c \ common/errors.c \ + common/environ.c \ common/fileio.c \ common/filestuff.c \ common/format.c \ @@ -1285,7 +1285,6 @@ HFILES_NO_SRCDIR = \ dwarf2-frame-tailcall.h \ dwarf2expr.h \ dwarf2loc.h \ - environ.h \ event-loop.h \ event-top.h \ exceptions.h \ @@ -1486,6 +1485,7 @@ HFILES_NO_SRCDIR = \ common/common-types.h \ common/common-utils.h \ common/errors.h \ + common/environ.h \ common/fileio.h \ common/format.h \ common/gdb_assert.h \ |