From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17735 invoked by alias); 5 Sep 2014 11:08:11 -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 17715 invoked by uid 89); 5 Sep 2014 11:08:07 -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 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; Fri, 05 Sep 2014 11:08:07 +0000 Received: from svr-orw-fem-05.mgc.mentorg.com ([147.34.97.43]) by relay1.mentorg.com with esmtp id 1XPrN5-0007f4-Ni from Yao_Qi@mentor.com ; Fri, 05 Sep 2014 04:08:03 -0700 Received: from GreenOnly (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.2.247.3; Fri, 5 Sep 2014 04:08:03 -0700 From: Yao Qi To: Doug Evans CC: gdb-patches Subject: Re: [PATCH] Fix gdb.dwarf2/dwz.exp for thumb mode References: <1409706936-11220-1-git-send-email-yao@codesourcery.com> Date: Fri, 05 Sep 2014 11:08:00 -0000 In-Reply-To: (Doug Evans's message of "Wed, 3 Sep 2014 10:51:17 -0700") Message-ID: <878ulycork.fsf@codesourcery.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: 2014-09/txt/msg00141.txt.bz2 Doug Evans writes: > This approach is fragile w.r.t. clang. > IIUC, Clang makes no guarantees about the ordering of global asms and > other objects, or even other objects w.r.t. each other (even at -O0). Doug, how about compile main.c to execution first, get the address of main, write this address down to dwz.S, and recompile main.c with dwz.S again. I assume that debug information changes doesn't affect the location of .text section and main's address. --=20 Yao (=E9=BD=90=E5=B0=A7)