This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: GCC, stabs, mangled names
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: carlton at math dot stanford dot edu
- Cc: drow at mvista dot com, gdb at sources dot redhat dot com
- Date: Tue, 11 Mar 2003 11:24:37 -0600
- Subject: Re: GCC, stabs, mangled names
Okay, your issue is different than my issue, so I'll forget about
my issue here.
Input is:
namespace C {
namespace D {
int cd = 1;
}
}
Output with gcc 3.2.2 binutils 2.13.2.1 -gstabs+ -S -dA is below.
With gcc gcc-3_2-branch%20030308, I get identical output, except for the
.ident string.
Michael C
.file "cd.cc"
.stabs "/berman/home/mgnu/gdb/nested-namespace/",100,0,0,.Ltext0
.stabs "cd.cc",100,0,0,.Ltext0
.text
.Ltext0:
.stabs "gcc2_compiled.",60,0,0,0
.stabs "int:t(0,1)=r(0,1);-2147483648;2147483647;",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,3);-2147483648;2147483647;",128,0,0,0
.stabs "unsigned int:t(0,4)=r(0,4);0000000000000;0037777777777;",128,0,0,0
.stabs "long unsigned int:t(0,5)=r(0,5);0000000000000;0037777777777;",128,0,0,0
.stabs "long long int:t(0,6)= at s64;r(0,6);01000000000000000000000;0777777777777777777777;",128,0,0,0
.stabs "long long unsigned int:t(0,7)= at s64;r(0,7);0000000000000;01777777777777777777777;",128,0,0,0
.stabs "short int:t(0,8)= at s16;r(0,8);-32768;32767;",128,0,0,0
.stabs "short unsigned int:t(0,9)= at s16;r(0,9);0;65535;",128,0,0,0
.stabs "signed char:t(0,10)= at s8;r(0,10);-128;127;",128,0,0,0
.stabs "unsigned char:t(0,11)= at s8;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);12;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)=R3;8;0;",128,0,0,0
.stabs "complex double:t(0,17)=R4;16;0;",128,0,0,0
.stabs "complex long double:t(0,18)=R5;24;0;",128,0,0,0
.stabs "wchar_t:t(0,19)=r(0,19);-2147483648;2147483647;",128,0,0,0
.stabs "__builtin_va_list:t(0,20)=*(0,2)",128,0,0,0
.stabs "bool:t(0,21)= at s8;-16;",128,0,0,0
.stabs "__vtbl_ptr_type:t(0,22)=*(0,23)=f(0,1)",128,0,0,0
.stabs "cd.cc",130,0,0,0
.globl _ZN1C1D2cdE
.data
.align 4
.type _ZN1C1D2cdE,@object
.size _ZN1C1D2cdE,4
_ZN1C1D2cdE:
.long 1
.stabs "cd:G(0,1)",32,0,3,0
.text
.stabs "",100,0,0,.Letext
.Letext:
.ident "GCC: (GNU) 3.2.2"