From patchwork Fri Sep 15 12:06:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 22893 Received: (qmail 15904 invoked by alias); 15 Sep 2017 12:06:49 -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 15891 invoked by uid 89); 15 Sep 2017 12:06:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:sk:static. X-HELO: mail-wm0-f65.google.com Received: from mail-wm0-f65.google.com (HELO mail-wm0-f65.google.com) (74.125.82.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Sep 2017 12:06:47 +0000 Received: by mail-wm0-f65.google.com with SMTP id e64so2613263wmi.2 for ; Fri, 15 Sep 2017 05:06:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=91PiNGB4QkGI8m2U++roBm3DYsrpzqga+dFqH8iEVG4=; b=dooacO/Aou/IzT54NwIZ43xyNvxyDSiKp0lI2e/iS/0sCNr6/a2RShJ8bslen2BfX5 JkyRB/F4akKA/Sj/HOuHhU5Glprark71XBgshTumSMdAgsRr0uUCeLFQhrlkQ4UT1XSF QV1Rs6H/R+7FHfY7kqBQgb8S8yFiSibD/+oIIkecIchkeZ8bGbpiAAtYh9PEC8p9Vtgw gUeHSe4lwP/G2NCSut/ZjxVV7XVnMtIqW/dxTAwByWqB9+E9bBXoD2Dsz+Akz+eH8Yce gmvndHUJSt7E8V/336ABqJJDntTytJPKoRl/bVOEX7KKb4TNd6yekHv/UZjKBOMzocdi VZnQ== X-Gm-Message-State: AHPjjUiey5+14sjCwkI8ImvbD0/XRVeBHFwnq7otSuFIQoocgbQ62kC/ S2IXg3Fde8/DNQi8tLxTMcUB6w== X-Google-Smtp-Source: AOwi7QAlBCdpIvQjW/4vee9oMnixhBONc8nAlmyniqx3wxLoIL1G16WfQeJ9kkgyNK2N9gMCGdXC7Q== X-Received: by 10.28.48.71 with SMTP id w68mr2696836wmw.3.1505477204733; Fri, 15 Sep 2017 05:06:44 -0700 (PDT) Received: from E107787-LIN.cambridge.arm.com (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id s3sm645333wrg.3.2017.09.15.05.06.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Sep 2017 05:06:44 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH OBV] Fix x86 build failures Date: Fri, 15 Sep 2017 13:06:40 +0100 Message-Id: <1505477200-13907-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes Christophe Lyon told me that GDB build failed on i386-linux with --enable-64-bit-bfd=yes, so I audit the gdb/configure.tgt again. I find that i386-darwin has the same issue too. Additionally, GDB for solaris target fails to build too. This patch fixes all of them. gdb: 2017-09-15 Yao Qi * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to gdb_target_obs. (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*): Likewise. (i[34567]86-*-linux*): Likewise. --- gdb/ChangeLog | 8 ++++++++ gdb/configure.tgt | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c562f7b..7cbd161 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2017-09-15 Yao Qi + + * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to + gdb_target_obs. + (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*): + Likewise. + (i[34567]86-*-linux*): Likewise. + 2017-09-14 Simon Marchi * dwarf2expr.h (dwarf_stack_value): Add constructor. diff --git a/gdb/configure.tgt b/gdb/configure.tgt index 9d9ef4b..2e69e1d 100644 --- a/gdb/configure.tgt +++ b/gdb/configure.tgt @@ -193,7 +193,7 @@ i[34567]86-*-darwin*) i386-darwin-tdep.o solib-darwin.o" if test "x$enable_64_bit_bfd" = "xyes"; then # Target: GNU/Linux x86-64 - gdb_target_obs="amd64-tdep.o amd64-darwin-tdep.o ${gdb_target_obs}" + gdb_target_obs="amd64-tdep.o amd64.o amd64-darwin-tdep.o ${gdb_target_obs}" fi ;; i[34567]86-*-dicos*) @@ -224,7 +224,7 @@ i[34567]86-*-nto*) ;; i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*) # Target: Solaris x86_64 - gdb_target_obs="i386-tdep.o i386.o i387-tdep.o amd64-tdep.o \ + gdb_target_obs="i386-tdep.o i386.o i387-tdep.o amd64-tdep.o amd64.o \ amd64-sol2-tdep.o i386-sol2-tdep.o sol2-tdep.o \ solib-svr4.o" ;; @@ -241,7 +241,7 @@ i[34567]86-*-linux*) linux-tdep.o linux-record.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}" + gdb_target_obs="amd64-tdep.o amd64.o amd64-linux-tdep.o ${gdb_target_obs}" fi build_gdbserver=yes ;;