[RFA 13/13] Redefine REMOTE_OBS in terms of a list of sources

Tom Tromey tom@tromey.com
Tue Nov 21 22:10:00 GMT 2017


This introduces REMOTE_SRCS and redefines REMOTE_OBS in terms of it.

ChangeLog
2017-11-21  Tom Tromey  <tom@tromey.com>

	* Makefile.in (REMOTE_SRCS): New variable.
	(REMOTE_OBS): Redefine.
	(SFILES): Remove remote sources.  Use REMOTE_SRCS.
	(ALLDEPFILES): Remove dcache.c.
---
 gdb/ChangeLog   |  7 +++++++
 gdb/Makefile.in | 36 ++++++++++++++----------------------
 2 files changed, 21 insertions(+), 22 deletions(-)

diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 6442b11103..b85201dc6d 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -616,19 +616,20 @@ XMLFILES = \
 # See configure.ac.
 SER_HARDWIRE = @SER_HARDWIRE@
 
-# The `remote' debugging target is supported for most architectures,
-# but not all (e.g. 960)
-REMOTE_OBS = \
-	ax-gdb.o \
-	ax-general.o \
-	ctf.o \
-	dcache.o \
-	remote.o \
-	remote-fileio.o \
-	remote-notif.o \
-	tracefile.o \
-	tracefile-tfile.o \
-	tracepoint.o
+# The `remote' debugging target support.
+REMOTE_SRCS = \
+	ax-gdb.c \
+	ax-general.c \
+	ctf.c \
+	dcache.c \
+	remote.c \
+	remote-fileio.c \
+	remote-notif.c \
+	tracefile.c \
+	tracefile-tfile.c \
+	tracepoint.c
+
+REMOTE_OBS = $(patsubst %.c,%.o,$(REMOTE_SRCS))
 
 # This is remote-sim.o if a simulator is to be linked in.
 SIM_OBS = @SIM_OBS@
@@ -1097,11 +1098,8 @@ COMMON_SFILES = \
 SFILES = \
 	ada-exp.y \
 	arch/i386.c \
-	ax-gdb.c \
-	ax-general.c \
 	c-exp.y \
 	cp-name-parser.y \
-	ctf.c \
 	d-exp.y \
 	dtrace-probe.c \
 	elfread.c \
@@ -1112,9 +1110,6 @@ SFILES = \
 	m2-exp.y \
 	p-exp.y \
 	proc-service.list \
-	remote.c \
-	remote-fileio.c \
-	remote-notif.c \
 	rust-exp.y \
 	ser-base.c \
 	ser-unix.c \
@@ -1122,7 +1117,6 @@ SFILES = \
 	stap-probe.c \
 	stub-termcap.c \
 	symfile-mem.c \
-	tracepoint.c \
 	ui-file.h \
 	common/agent.c \
 	common/btrace-common.c \
@@ -2235,8 +2229,6 @@ ALLDEPFILES = \
 	bsd-uthread.c \
 	core-regset.c \
 	darwin-nat.c \
-	dcache.c \
-	dcache.c \
 	dicos-tdep.c \
 	exec.c \
 	fbsd-nat.c \
-- 
2.13.6



More information about the Gdb-patches mailing list