From patchwork Fri Jan 19 09:12:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 25451 Received: (qmail 29279 invoked by alias); 19 Jan 2018 09:12:40 -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 29263 invoked by uid 89); 19 Jan 2018 09:12:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wm0-f66.google.com Received: from mail-wm0-f66.google.com (HELO mail-wm0-f66.google.com) (74.125.82.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 Jan 2018 09:12:37 +0000 Received: by mail-wm0-f66.google.com with SMTP id t74so1977351wme.3 for ; Fri, 19 Jan 2018 01:12:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=73TcJQCOF9tIUmiLLz7hDemTu/C+mMrBguUNtLu8SoY=; b=reYs+f1mQ2yiiz7K/2WuNMzuYPhseYwXmpNdxIHDS5n5Tey4EYt2He2p07/m2s9NAp EkVDHq/fogn7CEfW3osVewJpOjMCaRrPhE8OIp+Bs6228Im9qa81ezE1m1Q+ObNI9JCI Jd+hfts2Ymqk9jDrLiSeK9dMN3Q/33HrGxccCBcWPDloikBq8vlsXywtNnQfSkfWdGAo 3tUHEdfGacCcoaggjJGRNFEXokq2yoIqEDrrppvjUjn5kc60wpG9NTIZECDD06pwKrNs +EAQ7Q1tJ2AVOWBXfVO3EevDWsjsLb0YzKLRFuS6hc2ktI2A1BcmHJm/dvAZmS+0GvhF 1sMQ== X-Gm-Message-State: AKwxytdwBtjZ+wIqfwzr3/pT/z7uQuLi+x713a+Ul5nMBYRlEydzcAiH xMo2bxZs6C01l59680FJK9xyBg== X-Google-Smtp-Source: ACJfBoug9jXV/ApCnEMDHT37WProH5AGN1RtQlyEzDH1nHW3H34cBBV0bz2IGYnmNrFeP/wVXDKfCA== X-Received: by 10.28.55.81 with SMTP id e78mr7762131wma.50.1516353155199; Fri, 19 Jan 2018 01:12:35 -0800 (PST) Received: from E107787-LIN (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id n74sm4332610wmi.1.2018.01.19.01.12.34 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 19 Jan 2018 01:12:34 -0800 (PST) From: Yao Qi To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Find arm-linux-gnueabihf-gcc in compile References: <1516265199-29059-1-git-send-email-yao.qi@linaro.org> Date: Fri, 19 Jan 2018 09:12:29 +0000 In-Reply-To: (Pedro Alves's message of "Thu, 18 Jan 2018 18:32:05 +0000") Message-ID: <86y3kudxfm.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-IsSubscribed: yes Pedro Alves writes: > Debian seems to have a "arm-linux-gnueabi-gcc" as well, > , > which I assume is a version that defaults to soft-float. (Or > is that softfp?) Yes, arm-linux-gnueabi implies the EABI with -mfloat-abi=soft or -mfloat-abi=softfp, while arm-linux-gnueabihf implies -mfloat-abi=hard. I amend the commitlog a little, and push the patch below in. diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 90dacd2..6709f44 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-01-19 Yao Qi + + * osabi.c (gdb_osabi_names): Extend the regexp for + arm-linux-gnueabihf. + 2018-01-18 Yao Qi * dwarf2read.c (abbrev_table) : Rename it to diff --git a/gdb/osabi.c b/gdb/osabi.c index 129164f..fd44deb 100644 --- a/gdb/osabi.c +++ b/gdb/osabi.c @@ -63,7 +63,7 @@ static const struct osabi_names gdb_osabi_names[] = { "SVR4", NULL }, { "GNU/Hurd", NULL }, { "Solaris", NULL }, - { "GNU/Linux", "linux(-gnu)?" }, + { "GNU/Linux", "linux(-gnu[^-]*)?" }, { "FreeBSD", NULL }, { "NetBSD", NULL }, { "OpenBSD", NULL },