From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11963 invoked by alias); 17 May 2007 17:01:19 -0000 Received: (qmail 11871 invoked by uid 22791); 17 May 2007 17:01:01 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 17 May 2007 17:00:48 +0000 Received: (qmail 23531 invoked from network); 17 May 2007 17:00:45 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 17 May 2007 17:00:45 -0000 To: Joel Brobecker Cc: gdb-patches@sourceware.org Subject: Re: [RFA] wrong pointer type length References: <20070517161919.GA508@adacore.com> From: Jim Blandy Date: Thu, 17 May 2007 17:01:00 -0000 In-Reply-To: <20070517161919.GA508@adacore.com> (Joel Brobecker's message of "Thu, 17 May 2007 09:19:19 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2007-05/txt/msg00295.txt.bz2 Joel Brobecker writes: > We traced down the problem to the fact that the native assembler > seems to be changing up the order in which the stabs entries are > generated. Not sure why. Perhaps Ulrich might know a bit more. > In any case, the assembly file contains the following stabx entries > in that order: > > .stabx "root__union_record_t:Tt42=s12x_part:40,0,32;[...] > .stabx "root__union_record_a:t43=*42",0,140,0 > .stabx "u:p74=k43",808,130,0 > > However, after being compiled, the order has been changed to: > > 1. root__union_record_t:Tt42=s12x_part:40,0,32;[...] > 2. u:p74=k43 > 3. root__union_record_a:t43=*42 If the assembler is doing this in other cases, you're going to be pretty hosed. STABS requires records to appear in the order specified.