From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12091 invoked by alias); 9 Aug 2017 14:22:42 -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 11073 invoked by uid 89); 9 Aug 2017 14:22:41 -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,T_FILL_THIS_FORM_SHORT autolearn=ham version=3.3.2 spammy=H*r:sk:static. X-HELO: mail-it0-f65.google.com Received: from mail-it0-f65.google.com (HELO mail-it0-f65.google.com) (209.85.214.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 Aug 2017 14:22:40 +0000 Received: by mail-it0-f65.google.com with SMTP id f16so4729302itb.5 for ; Wed, 09 Aug 2017 07:22:39 -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:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=IFxb6/obsEN7REz2bJbKgqBz9E5ExksNqIxvBXxU9No=; b=fAuxNrs5LHyDZc4SpqwXIFhTrQ+s9KnWiKSIMk8vUUzQhGWcCWStGusRHfSqA/IjoC qBlqkjplSqG7l9fVoRhcCIiCnLbOuxC9aEGaOc8PxjV/OPZc1zjhaZm1n3LEdy8Q2qD+ v6aVguLykX/wxO+hesA6qLKu79cNW1p3jIxnG/DRFy0bPEvMfdNe/xMJOWnuGioq9pgF WRPNnz0URS8YvourVvCkQ753vW8FJl80QTeQaTETl/a2NSKa6xmsSSILdHsyAwkJy/KN 9MCAyZFUEhALEFo+1QEwnMLwjN3kB+LX6hw2ko/be5xpkDDry/NSD2SuHoH8AQTGVcSb G5Ow== X-Gm-Message-State: AIVw1102ThSD6AzQR5zTz6v8S3sHMHwvAn7357lE9fiHxJ02UFV0w0wq nXUKNKQGkKhS3rM4 X-Received: by 10.36.185.14 with SMTP id w14mr8183736ite.76.1502288558506; Wed, 09 Aug 2017 07:22:38 -0700 (PDT) Received: from E107787-LIN (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id b66sm1950539ioj.66.2017.08.09.07.22.37 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 09 Aug 2017 07:22:38 -0700 (PDT) From: Yao Qi To: Jiong Wang Cc: GDB Subject: Re: [AArch64][5/6] Implement gdbarch_core_read_description References: Date: Wed, 09 Aug 2017 14:22:00 -0000 In-Reply-To: (Jiong Wang's message of "Wed, 9 Aug 2017 13:18:04 +0100") Message-ID: <864ltgzuqc.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-08/txt/msg00183.txt.bz2 Jiong Wang writes: > 2017-08-09 Jiong Wang Two spaces between your name and email address. > > * aarch64-linux-tdep.c (aarch64_linux_core_read_description): New > function. > (aarch64_linux_init_abi): Register gdbarch_core_read_description. > > > diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c > index d2ca70a..ec6125a 100644 > --- a/gdb/aarch64-linux-tdep.c > +++ b/gdb/aarch64-linux-tdep.c > @@ -231,6 +231,20 @@ aarch64_linux_iterate_over_regset_sections (struct g= dbarch *gdbarch, > NULL, cb_data); > } >=20=20 > +/* Determine target description from core file. */ /* Implement the "core_read_description" gdbarch method. */ > + > +static const struct target_desc * > +aarch64_linux_core_read_description (struct gdbarch *gdbarch, > + struct target_ops *target, bfd *abfd) > +{ > + CORE_ADDR aarch64_hwcap =3D 0; > + > + if (target_auxv_search (target, AT_HWCAP, &aarch64_hwcap) !=3D 1) > + return NULL; > + > + return tdesc_aarch64; > +} This patch doesn't depend on other patches, so it can go in now. --=20 Yao (=E9=BD=90=E5=B0=A7)