Dwarf Error: Could not find abbrev number 1.
Grant Edwards
grante@visi.com
Sat Mar 11 12:03:00 GMT 2000
I recently updated my binutils (arm-elf target), and now when I
try to read symbols from some files (not all of them), I get a
dwarf error message. The odd thing is that some files work and
some don't (it seems to have something to do with which linker
command file is used). objdump and nm both seem happy with the
files, and I can "load" them fine, it's just the "symbol"
command that complains.
The only difference I can see between the files that work and
the ones that don't is the order of the section headers.
Any ideas what could have causes this?
------------------------------------------------------------
$ arm-elf-gdb
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
[...]
This GDB was configured as "--host=i586-pc-linux-gnu
--target=arm-elf".
JEENI (ADP, ARM7TDI) Rev 1.1
Rebuilt on Apr 13 1998 at 13:23:52
SN=9805J050 ENET=00:80:CF:00:03:31 IP=204.73.219.108
Connected to ARM RDI target.
(gdb) symbol lan
Reading symbols from lan...Dwarf Error: Could not find abbrev number 1.
------------------------------------------------------------
$ arm-elf-objdump --headers lan
lan: file format elf32-bigarm
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00001170 00000000 00000000 00008000 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .data 00000092 00001170 00001170 00009170 2**2
CONTENTS, ALLOC, LOAD, DATA
2 .bss 00006158 00001210 00001210 00009210 2**4
ALLOC
3 .rodata 0000009d 00007368 00007368 0000f368 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
4 .glue 00000000 00007408 00007408 0000f408 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
5 .stab 000000d8 00000000 00000000 0000f408 2**2
CONTENTS, READONLY, DEBUGGING
6 .stabstr 00000009 000000d8 000000d8 0000f4e0 2**0
CONTENTS, READONLY, DEBUGGING
7 .debug_abbrev 0000026e 000000e1 000000e1 0000f4e9 2**0
CONTENTS, READONLY, DEBUGGING
8 .debug_info 000015f1 0000034f 0000034f 0000f757 2**0
CONTENTS, READONLY, DEBUGGING
9 .debug_line 0000080f 00001940 00001940 00010d48 2**0
CONTENTS, READONLY, DEBUGGING
10 .debug_pubnames 00000412 0000214f 0000214f 00011557 2**0
CONTENTS, READONLY, DEBUGGING
11 .debug_aranges 00000060 00002561 00002561 00011969 2**0
CONTENTS, READONLY, DEBUGGING
--
Grant Edwards
grante@visi.com
More information about the Gdb
mailing list