Waldek Hebisch wrote (1 nov 2003):
[G4:~/gnu/testgpc/adriaan] adriaan% gpc -o adam2 adam2.pas -gstabs+ --automake
I do not expect quick solution (if ever...) to this problem. Stabs debugging format encodes types of methods in assembler names. I do not know if we can make it work for Pascal, the encoding was designed only for C++. And even for C++ stab method was limiting, so DWARF-2 was invented.
I will look at the problem, it is closely related to qualified identifiers. Thanks for the report.
There may be some more stab problems, found when running the testsuite with an added "objdump a.out >> /dev/null"
Bad stab: (0,75);-32;31; Last stabs entries before error: n_type n_desc n_value string LSYM 0 0000000000000000 Text:t(0,73)=s4_p_File_:(0,22),0,32;; LSYM 0 0000000000000000 Anyfile:t(0,74)=s4_p_File_:(0,22),0,32;; LSYM 3 0000000000000000 Xxx:t(0,75)=@s6;r(0,75);-32;31;
Bad stab: (0,75);-65536;65535; Last stabs entries before error: n_type n_desc n_value string LSYM 0 0000000000000000 Text:t(0,73)=s4_p_File_:(0,22),0,32;; LSYM 0 0000000000000000 Anyfile:t(0,74)=s4_p_File_:(0,22),0,32;; LSYM 4 0000000000000000 Int17:t(0,75)=@s17;r(0,75);-65536;65535;
Bad stab: (0,75);-4096;4095; Last stabs entries before error: n_type n_desc n_value string SLINE 1 0000000000002268 FUN 14 0000000000002170 pascal_main_program:F(0,23) LSYM 6 0000000000000068 X:(0,75)=@s13;r(0,75);-4096;4095;
Bad stab: (0,77);0;32767; Last stabs entries before error: n_type n_desc n_value string LSYM 26 0000000000000000 Cj:t(0,75)=@s64;r(0,75);0000000000000;01777777777777777777777; LSYM 25 0000000000000000 Ci:t(0,76)=@s42;r(0,76);0000000000000;077777777777777; LSYM 24 0000000000000000 Ch:t(0,77)=@s15;r(0,77);0;32767;
Bad stab: (0,76);0;1; Last stabs entries before error: n_type n_desc n_value string 14 0 000000000002fea0 _Dummy LSYM 108 0000000000000000 I:t(0,75)=@s1;r(0,75);-1;0; LSYM 108 0000000000000000 C:t(0,76)=@s1;r(0,76);0;1;
Bad stab: (0,87);-16;15; Last stabs entries before error: n_type n_desc n_value string LSYM 55 0000000000000000 T:t(0,81)=s12D:(0,82)=r(0,82);- 2147483648;2147483647;,0,32;_p_Schema_:(0,83)=ar(0,84)=r(0,84);- 2147483648;2147483647;;1;2;(0,85)=r(0,85);- 2147483648;2147483647;,32,64;; LSYM 65 0000000000000000 T:t(0,86)=r(0,1);5;10; LSYM 75 0000000000000000 T:t(0,87)=@s5;r(0,87);-16;15;
[G4:~] adriaan% gpc -v Reading specs from /Developer/Pascal/gpc332d7/lib/gcc-lib/powerpc-apple-darwin/3.3.2/specs Configured with: ../gpc-332d6a1/configure --enable-languages=pascal,c --target=powerpc-apple-darwin --host=powerpc-apple-darwin --enable-threads=posix --prefix=/Developer/Pascal/gpc332d7 Thread model: posix gpc version 20040516, based on gcc-3.3.2
Regards,
Adriaan van Os