This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: Problem with "next" in main on sparc
> Maybe you show me the end bit of try.s if you compile "gcc -S -g try.c"
> on your side?
Enclosed.
IMHO, the code in question should be reverted, at least for now. We
don't really want to be hacking up this part of GDB unless we have the
time to think fairly hard about things.
As described in
http://sourceware.cygnus.com/ml/gdb-patches/1999-q4/msg00137.html
------------------------------ begin try.s
.file "try.c"
.version "01.01"
.stabs "/home/devel/kingdon/zwork/jakub/",100,0,0,.LLtext0
.stabs "try.c",100,0,0,.LLtext0
.section ".text"
.LLtext0:
.stabs "gcc2_compiled.", 0x3c, 0, 0, 0
.stabs "int:t(0,1)=r(0,1);0020000000000;0017777777777;",128,0,0,0
.stabs "char:t(0,2)=r(0,2);0;127;",128,0,0,0
.stabs "long int:t(0,3)=r(0,1);0020000000000;0017777777777;",128,0,0,0
.stabs "unsigned int:t(0,4)=r(0,1);0000000000000;0037777777777;",128,0,0,0
.stabs "long unsigned int:t(0,5)=r(0,1);0000000000000;0037777777777;",128,0,0,0
.stabs "long long int:t(0,6)=r(0,1);01000000000000000000000;0777777777777777777777;",128,0,0,0
.stabs "long long unsigned int:t(0,7)=r(0,1);0000000000000;01777777777777777777777;",128,0,0,0
.stabs "short int:t(0,8)=r(0,8);-32768;32767;",128,0,0,0
.stabs "short unsigned int:t(0,9)=r(0,9);0;65535;",128,0,0,0
.stabs "signed char:t(0,10)=r(0,10);-128;127;",128,0,0,0
.stabs "unsigned char:t(0,11)=r(0,11);0;255;",128,0,0,0
.stabs "float:t(0,12)=r(0,1);4;0;",128,0,0,0
.stabs "double:t(0,13)=r(0,1);8;0;",128,0,0,0
.stabs "long double:t(0,14)=r(0,1);8;0;",128,0,0,0
.stabs "complex int:t(0,15)=s8real:(0,1),0,32;imag:(0,1),32,32;;",128,0,0,0
.stabs "complex float:t(0,16)=r(0,16);4;0;",128,0,0,0
.stabs "complex double:t(0,17)=r(0,17);8;0;",128,0,0,0
.stabs "complex long double:t(0,18)=r(0,18);8;0;",128,0,0,0
.stabs "void:t(0,19)=(0,19)",128,0,0,0
.global foo
.section ".data"
.stabs "foo:G(0,1)",32,0,1,0
.align 4
.type foo,#object
.size foo,4
foo:
.long 1
.section ".text"
.align 4
.stabs "main:F(0,1)",36,0,3,main
.global main
.type main,#function
.proc 04
main:
.stabn 68,0,3,.LM1-main
.LM1:
!#PROLOGUE# 0
save %sp,-104,%sp
!#PROLOGUE# 1
.stabn 68,0,4,.LM2-main
.LM2:
sethi %hi(foo),%o0
mov 2,%o1
st %o1,[%o0+%lo(foo)]
.stabn 68,0,5,.LM3-main
.LM3:
.LL1:
ret
restore
.LLfe1:
.size main,.LLfe1-main
.LLscope0:
.stabs "",36,0,0,.LLscope0-main
.stabs "",100,0,0,.Letext
.Letext:
.ident "GCC: (GNU) egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)"
------------------------------ end try.s