List Info

Thread: symbol maintenance




symbol maintenance
user name
2006-11-27 21:30:46
Fabian Cenedese <Cenedeseindel.ch> writes:
> After loading a file (without starting anything) I
tried "maintenance check-symbols".
> I got lots of messages like:
>
> Global symbol `__7fixed32' only found in
..(path)..Inos_typ.cpp psymtab
> Global symbol `IntOf__7fixed64' only found in
..(path)..Inos_typ.cpp psymtab
> Global symbol `__7fixed64' only found in
..(path)..Inos_typ.cpp psymtab
> Global symbol `__ml__FG7fixed32T0' only found in
..(path)..Inos_typ.cpp psymtab
> Global symbol `__ml__FG7fixed64T0' only found in
..(path)..Inos_typ.cpp psymtab
>
> Is this something to worry about? Does this indicate
wrong debug info or an
> error in gdb? If it's nothing to worry about what's the
use of these messages?
> Only for gdb interna?

I don't think those matter... I don't know for sure, but
since those
are mangled C++ names, I'd expect that there's some kind of
demangling
going on that's confusing the consistency checks.

> This is a gdb 6.5 cross-compiled with cygwin on WinXP
for ppc.
>
> I:cyghomedatagdb-6.5gdb>gdb --readnow
> GNU gdb 6.5
> ..(GPL)...
> This GDB was configured as "--host=i686-pc-cygwin
--target=powerpc-eabi".
> Setting up the environment for debugging gdb.
> No symbol table is loaded.  Use the "file"
command.
> No symbol table is loaded.  Use the "file"
command.
> /data/gdb-6.5/gdb/.gdbinit:8: Error in sourced command
file:
> No breakpoint number 0.
> (gdb) file gccext3.x
> Reading symbols from
/data/gdb-6.5/gdb/gccext3.x...unknown symbol type 0x1e...ex
> panding to full symbols...unsupported const value
attribute form: 'DW_FORM_strin
> g'...const value length mismatch for 'ciOffline', got
8, expected 0...done.

Those look more serious.  GDB is trying to read DWARF
debugging
information, and it's malformed.  What compiler are you
using?  What
does 'objdump -h gccext3.x' say?
symbol maintenance
user name
2006-11-28 11:38:16
>> This is a gdb 6.5 cross-compiled with cygwin on
WinXP for ppc.
>>
>> (gdb) file gccext3.x
>> Reading symbols from
/data/gdb-6.5/gdb/gccext3.x...unknown symbol type 0x1e...ex
>> panding to full symbols...unsupported const value
attribute form: 'DW_FORM_strin
>> g'...const value length mismatch for 'ciOffline',
got 8, expected 0...done.
>
>Those look more serious.  GDB is trying to read DWARF
debugging
>information, and it's malformed.  What compiler are you
using?  What
>does 'objdump -h gccext3.x' say?

The used compiler is gcc 4.0.2, cross compiled for ppc.
The files for gccext3 were compiled with -gdwarf-2 (no +, no
O).

Output of objdump -h gccext3.x:
(Sections 0, 15-18 are selfmade, necessary for the embedded
target)

gccext3.x:     file format elf32-big

Sections:
Idx Name          Size      VMA       LMA       File off 
Algn
  0 .vtable       00001444  00000000  00000000  00010000 
2**0
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .text         00099ff0  00001444  00001444  00011444 
2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  2 .rodata       0000b720  0009b438  0009b438  000ab438 
2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  3 .eh_frame     00000970  000a6b58  000a6b58  000b6b58 
2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 .ctors        000000d8  000a74c8  000a74c8  000b74c8 
2**2
                  CONTENTS, ALLOC, LOAD, DATA
  5 .dtors        00000018  000a75a0  000a75a0  000b75a0 
2**2
                  CONTENTS, ALLOC, LOAD, DATA
  6 .got2         000002b0  000a75b8  000a75b8  000b75b8 
2**0
                  CONTENTS, ALLOC, LOAD, DATA
  7 .fixup        00000448  000a7868  000a7868  000b7868 
2**2
                  CONTENTS, ALLOC, LOAD, DATA
  8 .gcc_except_table 000000c8  000a7cb0  000a7cb0  000b7cb0
 2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  9 .comment      00000ccf  000a7d78  000a7d78  000cbae4 
2**0
                  CONTENTS, READONLY
 10 .data         0000112c  000a8a48  000a8a48  000b8a48 
2**3
                  CONTENTS, ALLOC, LOAD, DATA
 11 .sdata        000000b0  000a9b74  000a9b74  000b9b74 
2**2
                  CONTENTS, ALLOC, LOAD, DATA
 12 .sbss         00000358  000a9c24  000a9c24  000b9c24 
2**2
                  ALLOC
 13 .sdata2       00000000  000a9f7c  000a9f7c  000b9f7c 
2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 14 .bss          000028cc  000a9f80  000a9f80  000b9f7c 
2**4
                  ALLOC
 15 .startup      0000f270  000ac84c  000ac84c  000bc84c 
2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 16 .struct_def   00000014  000bbabc  000bbabc  000cbabc 
2**0
                  CONTENTS, ALLOC, LOAD, DATA
 17 .struct_nam   00000014  000bbad0  000bbad0  000cbad0 
2**0
                  CONTENTS, ALLOC, LOAD, DATA
 18 .cache        00000000  000bc000  000bc000  000cc7b3 
2**0
                  CONTENTS
 19 .debug_abbrev 0001748c  00000000  00000000  000cc7b3 
2**0
                  CONTENTS, READONLY, DEBUGGING
 20 .debug_info   000d77c6  00000000  00000000  000e3c3f 
2**0
                  CONTENTS, READONLY, DEBUGGING
 21 .debug_line   000189ba  00000000  00000000  001bb405 
2**0
                  CONTENTS, READONLY, DEBUGGING
 22 .debug_frame  00014528  00000000  00000000  001d3dc0 
2**2
                  CONTENTS, READONLY, DEBUGGING
 23 .debug_pubnames 00016f20  00000000  00000000  001e82e8 
2**0
                  CONTENTS, READONLY, DEBUGGING
 24 .debug_aranges 000030d0  00000000  00000000  001ff208 
2**0
                  CONTENTS, READONLY, DEBUGGING
 25 .debug_str    0000b420  00000000  00000000  002022d8 
2**0
                  CONTENTS, READONLY, DEBUGGING
 26 .debug_loc    0001c2b9  00000000  00000000  0020d6f8 
2**0
                  CONTENTS, READONLY, DEBUGGING
 27 .debug_ranges 00001890  00000000  00000000  002299b1 
2**0
                  CONTENTS, READONLY, DEBUGGING
 28 .stab         00005004  00000000  00000000  0022b244 
2**2
                  CONTENTS, READONLY, DEBUGGING
 29 .stabstr      00002466  00000000  00000000  00230248 
2**0
                  CONTENTS, READONLY, DEBUGGING

Thanks

bye  Fabi


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )