From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29290 invoked by alias); 3 Jul 2014 06:11:47 -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 28868 invoked by uid 89); 3 Jul 2014 06:11:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 03 Jul 2014 06:11:30 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1X2aEx-0006Oz-1Z from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Wed, 02 Jul 2014 23:11:27 -0700 Received: from SVR-ORW-FEM-06.mgc.mentorg.com ([147.34.97.120]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Wed, 2 Jul 2014 23:11:26 -0700 Received: from qiyao.dyndns.org.com (147.34.91.1) by SVR-ORW-FEM-06.mgc.mentorg.com (147.34.97.120) with Microsoft SMTP Server id 14.2.247.3; Wed, 2 Jul 2014 23:11:26 -0700 From: Yao Qi To: Subject: [PATCH 0/4] Fix gdb.trace/entry-values.exp fails in thumb mode Date: Thu, 03 Jul 2014 06:11:00 -0000 Message-ID: <1404367792-23234-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg00042.txt.bz2 We see some fails in gdb.trace/entry-values.exp in thumb mode (-mthumb -march={armv4t,armv7-a}), which are caused by two problems in gdb, - prologue analysis in gdb for thumb code is broken. Patch #3 is to fix it by stopping prologue analysis when it goes to the epilogue. - dwarf assembler in gdb.trace/entry-values.exp uses functions whose address's bit 0 is set, which is incorrect. Patch #4 is to fix it. Patch 1 is preparatory patch and patch 2 is a refactor one. Each of them is regression tested on arm-none-linux-gnueabi. *** BLURB HERE *** Yao Qi (4): Restrict matching add/sub sp, #imm Match instruction adjusts SP in thumb Stop prologue analysis when past the epilogue Fix gdb.trace/entry-values.exp for thumb mode gdb/arm-tdep.c | 41 +++++++++++++++++--------------- gdb/testsuite/gdb.trace/entry-values.c | 6 +++++ gdb/testsuite/gdb.trace/entry-values.exp | 10 ++++---- 3 files changed, 33 insertions(+), 24 deletions(-) -- 1.9.0