Hello all,
I'm porting uclinux on the Cortus Aps3 Processor. Now I've compiled
correcty with the -g compilation option to obtain debugging
information. However, when I run the vmlinux executable under GDB, it
generates a DWARF error (see below). I've of course add the DWARF2
section in vmlinux.lds.S. After investigations, it seems that it is the
Debug_info of the executable which is corrupted.
I need to fix this error because actually I can't load the vmlinux
symbols table in GDB, so I can't set breakpoints or watchpoints.
How can I fix this error ?
Could someone help me please?
Thanks in advance.
Stephane Lambert
___________________________________________________________________________________________________________
GNU gdb 6.5.0 (Cortus 20080313 with DSP)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu
--target=aps3"...Dwarf Error: Could not find abbrev number 1 [in module
/home/stephane/uClinux/uClinux-dist/linux-2.6.x/vmlinux]
___________________________________________________________________________________________________________
aps3-objdump -h vmlinux
vmlinux: file format aps3
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 000a2634 80000000 80000000 00023000 2**2
CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
1 .sbss 000004d0 00000000 00000000 00000094 2**4
ALLOC
2 .data 00007b30 000004d0 000004d0 000004d0 2**2
CONTENTS, ALLOC, LOAD, RELOC, DATA
3 .init 00001000 00008000 00008000 00008000 2**2
CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
4 .bss 00019124 00009000 00009000 00009000 2**2
ALLOC
5 .comment 000027b4 00000000 00000000 000c5634 2**0
CONTENTS, READONLY
6 .debug_aranges 00002540 00000000 00000000 000c7de8 2**0
CONTENTS, RELOC, READONLY, DEBUGGING
7 .debug_pubnames 0000cd7a 00000000 00000000 000ca328 2**0
CONTENTS, RELOC, READONLY, DEBUGGING
8 .debug_info 0053d259 00000000 00000000 000d70a2 2**0
CONTENTS, RELOC, READONLY, DEBUGGING
9 .debug_abbrev 0003cc9d 00000000 00000000 006142fb 2**0
CONTENTS, READONLY, DEBUGGING
10 .debug_line 0010f788 00000000 00000000 00650f98 2**0
CONTENTS, RELOC, READONLY, DEBUGGING
11 .debug_frame 0000f46c 00000000 00000000 00760720 2**2
CONTENTS, RELOC, READONLY, DEBUGGING
12 .debug_str 00251abc 00000000 00000000 0076fb8c 2**0
CONTENTS, READONLY, DEBUGGING
13 .debug_loc 00094af9 00000000 00000000 009c1648 2**0
CONTENTS, RELOC, READONLY, DEBUGGING
14 .debug_ranges 0002cb98 00094af9 00094af9 00a56141 2**0
CONTENTS, RELOC, READONLY, DEBUGGING
15 .heap 00020000 000c1694 000c1694 00a82cdc 2**2
CONTENTS, READONLY
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev