From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27427 invoked by alias); 13 Aug 2013 14:47:15 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 27397 invoked by uid 89); 13 Aug 2013 14:47:15 -0000 X-Spam-SWARE-Status: No, score=-6.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD autolearn=ham version=3.3.2 Received: from mga09.intel.com (HELO mga09.intel.com) (134.134.136.24) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 13 Aug 2013 14:47:12 +0000 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 13 Aug 2013 07:44:05 -0700 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 13 Aug 2013 07:46:45 -0700 Received: from ulslx001.iul.intel.com (ulslx001.iul.intel.com [172.28.207.63]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id r7DEkhs9005430; Tue, 13 Aug 2013 15:46:44 +0100 Received: from ulslx001.iul.intel.com (localhost [127.0.0.1]) by ulslx001.iul.intel.com with ESMTP id r7DEkhch013625; Tue, 13 Aug 2013 16:46:43 +0200 Received: (from mgherza1@localhost) by ulslx001.iul.intel.com with id r7DEkhFJ013621; Tue, 13 Aug 2013 16:46:43 +0200 From: Mircea Gherzan To: tromey@redhat.com, jan.kratochvil@redhat.com Cc: gdb-patches@sourceware.org, markus.t.metzger@intel.com, Mircea Gherzan Subject: [PATCH] btrace: fix the non-native build Date: Tue, 13 Aug 2013 14:47:00 -0000 Message-Id: <1376405154-13435-1-git-send-email-mircea.gherzan@intel.com> X-SW-Source: 2013-08/txt/msg00343.txt.bz2 When building on a non-Linux host for a Linux target, the build fails because the linux-btrace object is not built/linked. 2013-08-09 Mircea Gherzan gdb/ * configure.tgt: Add linux-btrace.o to gdb_target_obs for i386 and x86_64 Linux targets. * config/i386/linux.mh (NATDEPFILES): Remove linux-btrace.o. * config/i386/linux64.mh (NATDEPFILES): Remove linux-btrace.o. Signed-off-by: Mircea Gherzan --- gdb/config/i386/linux.mh | 3 +-- gdb/config/i386/linux64.mh | 2 +- gdb/configure.tgt | 5 +++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gdb/config/i386/linux.mh b/gdb/config/i386/linux.mh index 7c64e83..8316d87 100644 --- a/gdb/config/i386/linux.mh +++ b/gdb/config/i386/linux.mh @@ -4,8 +4,7 @@ NAT_FILE= config/nm-linux.h NATDEPFILES= inf-ptrace.o fork-child.o \ i386-nat.o i386-linux-nat.o \ proc-service.o linux-thread-db.o \ - linux-nat.o linux-osdata.o linux-fork.o linux-procfs.o linux-ptrace.o \ - linux-btrace.o + linux-nat.o linux-osdata.o linux-fork.o linux-procfs.o linux-ptrace.o NAT_CDEPS = $(srcdir)/proc-service.list # The dynamically loaded libthread_db needs access to symbols in the diff --git a/gdb/config/i386/linux64.mh b/gdb/config/i386/linux64.mh index 8d782c1..d2b95fd 100644 --- a/gdb/config/i386/linux64.mh +++ b/gdb/config/i386/linux64.mh @@ -3,7 +3,7 @@ NATDEPFILES= inf-ptrace.o fork-child.o \ i386-nat.o amd64-nat.o amd64-linux-nat.o \ linux-nat.o linux-osdata.o \ proc-service.o linux-thread-db.o linux-fork.o \ - linux-procfs.o linux-ptrace.o linux-btrace.o + linux-procfs.o linux-ptrace.o NAT_FILE= config/nm-linux.h NAT_CDEPS = $(srcdir)/proc-service.list diff --git a/gdb/configure.tgt b/gdb/configure.tgt index 653ba2b..0dabd57 100644 --- a/gdb/configure.tgt +++ b/gdb/configure.tgt @@ -221,7 +221,7 @@ i[34567]86-*-linux*) # Target: Intel 386 running GNU/Linux gdb_target_obs="i386-tdep.o i386-linux-tdep.o glibc-tdep.o i387-tdep.o \ solib-svr4.o symfile-mem.o \ - linux-tdep.o linux-record.o" + linux-tdep.o linux-record.o linux-btrace.o" if test "x$enable_64_bit_bfd" = "xyes"; then # Target: GNU/Linux x86-64 gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o ${gdb_target_obs}" @@ -660,7 +660,8 @@ x86_64-*-linux*) # Target: GNU/Linux x86-64 gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o i386-tdep.o \ i387-tdep.o i386-linux-tdep.o glibc-tdep.o \ - solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o" + solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o \ + linux-btrace.o" build_gdbserver=yes ;; x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) -- 1.7.12.4