From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13696 invoked by alias); 29 Sep 2014 00:56:46 -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 13663 invoked by uid 89); 29 Sep 2014 00:56:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,T_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; Mon, 29 Sep 2014 00:56:43 +0000 Received: from svr-orw-fem-03.mgc.mentorg.com ([147.34.97.39]) by relay1.mentorg.com with esmtp id 1XYPGZ-0003Ac-SI from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Sun, 28 Sep 2014 17:56:39 -0700 Received: from qiyao.dyndns.org.com (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.3.181.6; Sun, 28 Sep 2014 17:56:39 -0700 From: Yao Qi To: Subject: [PATCH 0/2] Fix implptr-optimized-out.exp fail in thumb mode Date: Mon, 29 Sep 2014 00:56:00 -0000 Message-ID: <1411951921-16168-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-09/txt/msg00814.txt.bz2 implptr-optimized-out.exp uses main in assembly to generate debug information, so it makes troubles in thumb mode because of the lsb of main address. Patch 1 is to switch to dwarf assembler to generate assembly, so that it is flexible to adjust dwarf output. Patch 2 is to compute the correct address of main. We do the same in dwz.exp too. *** BLURB HERE *** Yao Qi (2): Use Dwarf::assemble in implptr-optimized-out.exp Fix implptr-optimized-out.exp fail in thumb mode gdb/testsuite/gdb.dwarf2/implptr-optimized-out.S | 166 --------------------- gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp | 96 +++++++++++- 2 files changed, 93 insertions(+), 169 deletions(-) delete mode 100644 gdb/testsuite/gdb.dwarf2/implptr-optimized-out.S -- 1.9.3