From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21671 invoked by alias); 15 Sep 2010 07:29:31 -0000 Received: (qmail 21661 invoked by uid 22791); 15 Sep 2010 07:29:30 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,TW_BJ X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Sep 2010 07:29:25 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id C1A12CB027D; Wed, 15 Sep 2010 09:29:23 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o8pcXSuft+z1; Wed, 15 Sep 2010 09:29:23 +0200 (CEST) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id B0614CB0232; Wed, 15 Sep 2010 09:29:23 +0200 (CEST) Subject: Re: [RFC] Improve stabs debugging for mingw64 executables loaded at high addresses Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Tristan Gingold In-Reply-To: <000a01cb5420$e7a44420$b6eccc60$@muller@ics-cnrs.unistra.fr> Date: Wed, 15 Sep 2010 08:30:00 -0000 Cc: Content-Transfer-Encoding: quoted-printable Message-Id: <9B2E419A-9C35-40DD-8979-B19C4FD69BD4@adacore.com> References: <000701cb541e$1160cde0$342269a0$@muller@ics-cnrs.unistra.fr> <282E4D5B-2863-4CC2-99EE-76A36BDE8A9F@adacore.com> <000a01cb5420$e7a44420$b6eccc60$@muller@ics-cnrs.unistra.fr> To: Pierre Muller X-IsSubscribed: yes 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 X-SW-Source: 2010-09/txt/msg00282.txt.bz2 On Sep 14, 2010, at 5:24 PM, Pierre Muller wrote: >>> Comments welcome, >>=20 >> I think that some 64 bits targets have 8 bytes for the address. >=20 >=20 > Of course, dwarf debugging doesn't suffer from this limitation, > and uses 8-byte for addresses. > This is the default format for most 64-bit targets, > and it is the preferred debugging format for 64-bit > because of this 4-byte limitation of stabs... > So this is really a marginal case that I presented here. To clarify, I meant that some 64 bits targets have 8 bytes for the address = in *stabs*. (eg: darwin64 - but the use of stabs is deprecated for this target). OTOH, dbxread.c seems to be bound to 32-bits stabs address. I am not sure it is right to set objfile->section_offsets->offsets. > The thing is that, for Free Pascal, we have lots of > troubles with DWARF (and some 64-bit specific),=20 > thus I would like to be able to use STABS format (which=20 > is less troublesome) but that also didn't work > because of this high address default base used by this compiler. So, it might be worth fixing Free Pascal too ! Tristan.