aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2018-02-19 09:37:24 +0000
committerAlan Hayward <alan.hayward@arm.com>2018-02-19 09:37:24 +0000
commitb5884fa7101cc528f07fd57c3de445a3680964a6 (patch)
tree673fef9a19032412d596a21406bb7cb783a3e65c /gdb/gdbserver
parentdbc88fc14992c556b94e77de563a8f7abcb0b653 (diff)
downloadbinutils-b5884fa7101cc528f07fd57c3de445a3680964a6.zip
binutils-b5884fa7101cc528f07fd57c3de445a3680964a6.tar.gz
binutils-b5884fa7101cc528f07fd57c3de445a3680964a6.tar.bz2
Add common/ dir in build directories
gdb/ * Makefile.in: (COMMON_SFILES): Add common/*.c files. (SFILES): Remove common/*.c files. (COMMON_OBS): Remove some *.o files built from common/*.c files. * common/common.host: Add common reference. * configure.ac: Likewise. * configure: Regenerate. gdbserver/ * Makefile.in: Add common directory in build. * configure.ac: Add common reference. * configure: Regenerate.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog6
-rw-r--r--gdb/gdbserver/Makefile.in64
-rwxr-xr-xgdb/gdbserver/configure4
-rw-r--r--gdb/gdbserver/configure.ac4
4 files changed, 42 insertions, 36 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 0ff5af7..b7e017c 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,9 @@
+2018-02-19 Alan Hayward <alan.hayward@arm.com>
+
+ * Makefile.in: Add common directory in build.
+ * configure.ac: Add common reference.
+ * configure: Regenerate.
+
2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
* linux-low.c (linux_target_ops): Remove linux_supports_btrace.
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index 3ce086d..fcb6e1e 100644
--- a/gdb/gdbserver/Makefile.in
+++ b/gdb/gdbserver/Makefile.in
@@ -231,48 +231,48 @@ SOURCES = $(SFILES)
TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
OBS = \
- agent.o \
ax.o \
- btrace-common.o \
- buffer.o \
- cleanups.o \
- common-debug.o \
- common-exceptions.o \
- job-control.o \
- common-regcache.o \
- common-utils.o \
+ common/agent.o \
+ common/btrace-common.o \
+ common/buffer.o \
+ common/cleanups.o \
+ common/common-debug.o \
+ common/common-exceptions.o \
+ common/job-control.o \
+ common/common-regcache.o \
+ common/common-utils.o \
+ common/errors.o \
+ common/environ.o \
+ common/fileio.o \
+ common/filestuff.o \
+ common/format.o \
+ common/gdb_tilde_expand.o \
+ common/gdb_vecs.o \
+ common/new-op.o \
+ common/print-utils.o \
+ common/ptid.o \
+ common/rsp-low.o \
+ common/signals.o \
+ common/signals-state-save-restore.o \
+ common/vec.o \
+ common/xml-utils.o \
debug.o \
dll.o \
- errors.o \
- environ.o \
event-loop.o \
- fileio.o \
- filestuff.o \
- format.o \
- gdb_tilde_expand.o \
- gdb_vecs.o \
hostio.o \
inferiors.o \
mem-break.o \
- new-op.o \
notif.o \
- print-utils.o \
- ptid.o \
regcache.o \
remote-utils.o \
- rsp-low.o \
server.o \
- signals.o \
- signals-state-save-restore.o \
symbol.o \
target.o \
tdesc.o \
tracepoint.o \
utils.o \
- vec.o \
version.o \
waitstatus.o \
- xml-utils.o \
$(DEPFILES) \
$(LIBOBJS) \
$(XML_BUILTIN)
@@ -392,17 +392,17 @@ gdbreplay$(EXEEXT): $(GDBREPLAY_OBS) $(LIBGNU) $(LIBIBERTY)
IPA_OBJS = \
ax-ipa.o \
- common-utils-ipa.o \
- errors-ipa.o \
- format-ipa.o \
- print-utils-ipa.o \
+ common/common-utils-ipa.o \
+ common/errors-ipa.o \
+ common/format-ipa.o \
+ common/print-utils-ipa.o \
+ common/rsp-low-ipa.o \
+ common/vec-ipa.o \
regcache-ipa.o \
remote-utils-ipa.o \
- rsp-low-ipa.o \
tdesc-ipa.o \
tracepoint-ipa.o \
utils-ipa.o \
- vec-ipa.o \
${IPA_DEPFILES}
IPA_LIB = libinproctrace.so
@@ -562,7 +562,7 @@ arch/%.o: ../arch/%.c
$(IPAGENT_COMPILE) $<
$(POSTCOMPILE)
-%-ipa.o: ../common/%.c
+common/%-ipa.o: ../common/%.c
$(IPAGENT_COMPILE) $<
$(POSTCOMPILE)
@@ -580,7 +580,7 @@ arch/%-ipa.o: ../arch/%.c
$(COMPILE) $<
$(POSTCOMPILE)
-%.o: ../common/%.c
+common/%.o: ../common/%.c
$(COMPILE) $<
$(POSTCOMPILE)
diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure
index 340ca7a..ab09261 100755
--- a/gdb/gdbserver/configure
+++ b/gdb/gdbserver/configure
@@ -5815,7 +5815,7 @@ fi
if $development; then
- srv_selftest_objs="selftest.o"
+ srv_selftest_objs="common/selftest.o"
$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
@@ -5858,7 +5858,7 @@ ac_config_commands="$ac_config_commands depdir"
# Create sub-directories for objects and dependencies.
-CONFIG_SRC_SUBDIR="arch"
+CONFIG_SRC_SUBDIR="arch common"
ac_config_commands="$ac_config_commands gdbdepdir"
diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac
index 6727959..9980168 100644
--- a/gdb/gdbserver/configure.ac
+++ b/gdb/gdbserver/configure.ac
@@ -57,7 +57,7 @@ fi
GDB_AC_LIBMCHECK(${libmcheck_default})
if $development; then
- srv_selftest_objs="selftest.o"
+ srv_selftest_objs="common/selftest.o"
AC_DEFINE(GDB_SELF_TEST, 1,
[Define if self-testing features should be enabled])
fi
@@ -69,7 +69,7 @@ ACX_NONCANONICAL_HOST
ZW_CREATE_DEPDIR
# Create sub-directories for objects and dependencies.
-CONFIG_SRC_SUBDIR="arch"
+CONFIG_SRC_SUBDIR="arch common"
AC_SUBST(CONFIG_SRC_SUBDIR)
AC_CONFIG_COMMANDS([gdbdepdir],[