From patchwork Mon Nov 9 15:55:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 9611 Received: (qmail 46855 invoked by alias); 9 Nov 2015 15:56:09 -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 46839 invoked by uid 89); 9 Nov 2015 15:56:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f43.google.com Received: from mail-pa0-f43.google.com (HELO mail-pa0-f43.google.com) (209.85.220.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 09 Nov 2015 15:56:08 +0000 Received: by pacdm15 with SMTP id dm15so178698051pac.3 for ; Mon, 09 Nov 2015 07:56:06 -0800 (PST) X-Received: by 10.68.242.105 with SMTP id wp9mr41349028pbc.49.1447084566373; Mon, 09 Nov 2015 07:56:06 -0800 (PST) Received: from E107787-LIN.cambridge.arm.com (gcc2-power8.osuosl.org. [140.211.9.43]) by smtp.gmail.com with ESMTPSA id t13sm17081640pbs.88.2015.11.09.07.56.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Nov 2015 07:56:05 -0800 (PST) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH OBV] Use ELF_STRING_ARM_unwind in arm-tdep.c Date: Mon, 9 Nov 2015 15:55:56 +0000 Message-Id: <1447084556-20604-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes We've already has the definition like this, #define ELF_STRING_ARM_unwind ".ARM.exidx" so it is better to use the macro rather than the string. gdb: 2015-11-09 Yao Qi * arm-tdep.c (arm_exidx_new_objfile): Use ELF_STRING_ARM_unwind. --- gdb/ChangeLog | 5 +++++ gdb/arm-tdep.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0e63ed2..e198c93 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2015-11-09 Yao Qi + * arm-tdep.c (arm_exidx_new_objfile): Use + ELF_STRING_ARM_unwind. + +2015-11-09 Yao Qi + * infrun.c (displaced_step_in_progress_thread): New function. (handle_inferior_event_1): Call it. diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 46633ec..83ce926 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -2219,7 +2219,7 @@ arm_exidx_new_objfile (struct objfile *objfile) cleanups = make_cleanup (null_cleanup, NULL); /* Read contents of exception table and index. */ - exidx = bfd_get_section_by_name (objfile->obfd, ".ARM.exidx"); + exidx = bfd_get_section_by_name (objfile->obfd, ELF_STRING_ARM_unwind); if (exidx) { exidx_vma = bfd_section_vma (objfile->obfd, exidx);