This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs-cc1-bug: stabs and gdb/gccfindhit




$ egcs -v
Reading specs from /gg/lib/gcc-lib/m68k-amigaos/egcs-2.90.23/specs
gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)

Gdb-4.16 does not stop on breakpoints on binaries compiled with
egcs-cc1. (With cc1plus it works) I have compared the assembler output
of gcc-2.7.2 and egcs:

The differenc are single numbers:
gcc-272: .stabs "long int:t3=r1;-2147483648;2147483647;",128,0,0,0
                              ^
egcs   : .stabs "long int:t3=r3;-2147483648;2147483647;",128,0,0,0
                              ^

source:
int main ()
{
  return 0;
}

diff:
---------------------------------------------------------
0/12> diff main-272.s main-egcs.s 
10,12c10,12
< .stabs "long int:t3=r1;-2147483648;2147483647;",128,0,0,0
< .stabs "unsigned int:t4=r1;0;-1;",128,0,0,0
< .stabs "long unsigned int:t5=r1;0;-1;",128,0,0,0
---
> .stabs "long int:t3=r3;-2147483648;2147483647;",128,0,0,0
> .stabs "unsigned int:t4=r4;0;-1;",128,0,0,0
> .stabs "long unsigned int:t5=r5;0;-1;",128,0,0,0
15,18c15,18
< .stabs "short int:t8=r1;-32768;32767;",128,0,0,0
< .stabs "short unsigned int:t9=r1;0;65535;",128,0,0,0
< .stabs "signed char:t10=r1;-128;127;",128,0,0,0
< .stabs "unsigned char:t11=r1;0;255;",128,0,0,0
---
> .stabs "short int:t8=r8;-32768;32767;",128,0,0,0
> .stabs "short unsigned int:t9=r9;0;65535;",128,0,0,0
> .stabs "signed char:t10=r10;-128;127;",128,0,0,0
> .stabs "unsigned char:t11=r11;0;255;",128,0,0,0
35a36
>       .even
38a40
>       .even
43a46,47
> Lscope0:
> .stabs "",36,0,0,Lscope0-_main
-------------------------------------------------------------



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]