From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10669 invoked by alias); 14 Sep 2014 15:24:31 -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 10657 invoked by uid 89); 14 Sep 2014 15:24:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 X-HELO: mail-out.m-online.net Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Sun, 14 Sep 2014 15:24:27 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3hwvd41bXtz3hj9s; Sun, 14 Sep 2014 17:24:23 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3hwvd33rZmzvhRl; Sun, 14 Sep 2014 17:24:23 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id n8GcWurR87bj; Sun, 14 Sep 2014 17:24:22 +0200 (CEST) X-Auth-Info: UjxsJOfCDvn4vlL2BfZ0SEsUZ336ano/zuGM8kCJ83gMg2TiNJkwE9t84YsDaAQy Received: from igel.home (ppp-93-104-159-138.dynamic.mnet-online.de [93.104.159.138]) by mail.mnet-online.de (Postfix) with ESMTPA; Sun, 14 Sep 2014 17:24:22 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 5B5FC2C0342; Sun, 14 Sep 2014 17:24:22 +0200 (CEST) From: Andreas Schwab To: Yao Qi Cc: Subject: Re: [PATCH] Fix gdb.dwarf2/dwz.exp for thumb mode References: <87siju7816.fsf@igel.home> <87bnqil1bb.fsf@codesourcery.com> X-Yow: It was a JOKE!! Get it?? I was receiving messages from DAVID LETTERMAN!! YOW!! Date: Sun, 14 Sep 2014 15:24:00 -0000 In-Reply-To: <87bnqil1bb.fsf@codesourcery.com> (Yao Qi's message of "Sun, 14 Sep 2014 22:32:56 +0800") Message-ID: <87ha0a6x95.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2014-09/txt/msg00485.txt.bz2 Yao Qi writes: > Andreas Schwab writes: > >>> -if { $main_length == "" } { >>> +set main_label_offset "" >>> +set test "p main_label" >>> +gdb_test_multiple $test $test { >>> + -re ".* = {.*} $hex .*\r\n$gdb_prompt $" { >>> + set main_label_offset $expect_out(1,string) >>> + } >>> +} >> >> This will also fail to match if assembler labels are prefixed. > > If you meant 'main' could be prefixed to '_main' for example, then GDB > can get rid of the prefix on display. On mingw target, function 'foo' > is prefixed to '_foo', but GDB still shows 'foo' rather than '_foo'. (gdb) p main_label $1 = {} 0x100004e0 <.main+12> Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."