From patchwork Tue Nov 21 22:10:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 24425 Received: (qmail 41981 invoked by alias); 21 Nov 2017 22:10:45 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 41838 invoked by uid 89); 21 Nov 2017 22:10:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KB_WAM_FROM_NAME_SINGLEWORD, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=11176 X-HELO: gateway33.websitewelcome.com Received: from gateway33.websitewelcome.com (HELO gateway33.websitewelcome.com) (192.185.146.80) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 21 Nov 2017 22:10:42 +0000 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway33.websitewelcome.com (Postfix) with ESMTP id 815FD14D1282 for ; Tue, 21 Nov 2017 16:10:29 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id HGkPeexmUpOTvHGkPeLbZj; Tue, 21 Nov 2017 16:10:29 -0600 Received: from 71-218-90-63.hlrn.qwest.net ([71.218.90.63]:35604 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eHGkP-0048Hi-8z; Tue, 21 Nov 2017 16:10:29 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 13/13] Redefine REMOTE_OBS in terms of a list of sources Date: Tue, 21 Nov 2017 15:10:23 -0700 Message-Id: <20171121221023.23992-14-tom@tromey.com> In-Reply-To: <20171121221023.23992-1-tom@tromey.com> References: <20171121221023.23992-1-tom@tromey.com> X-BWhitelist: no X-Source-L: No X-Exim-ID: 1eHGkP-0048Hi-8z X-Source-Sender: 71-218-90-63.hlrn.qwest.net (bapiya.Home) [71.218.90.63]:35604 X-Source-Auth: tom+tromey.com X-Email-Count: 14 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes This introduces REMOTE_SRCS and redefines REMOTE_OBS in terms of it. ChangeLog 2017-11-21 Tom Tromey * 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 \