This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] wrong pointer type length
- From: Jim Blandy <jimb at codesourcery dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 17 May 2007 10:00:44 -0700
- Subject: Re: [RFA] wrong pointer type length
- References: <20070517161919.GA508@adacore.com>
Joel Brobecker <brobecker@adacore.com> 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.