[RFA] wrong pointer type length

Jim Blandy jimb@codesourcery.com
Thu May 17 17:01:00 GMT 2007


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.



More information about the Gdb-patches mailing list