Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Dwarf Error: Could not find abbrev number 116.
@ 2002-08-18  6:36 kas turi
  2002-08-19  7:44 ` Jim Blandy
  0 siblings, 1 reply; 3+ messages in thread
From: kas turi @ 2002-08-18  6:36 UTC (permalink / raw)
  To: gdb

Hi
  I am trying to debug loadable modules on 8260 board.
I am using GDB to debug the module. The loadable
module say x.o has two object files a.o and b.o. x.o
is generated as follows:

powerpc-linux-ld -r -o x.o a.o b.o

I run the linux on the target. On the host machine I
run GDB and connect to the target. In the target I
load the loadable module using insmod utility:

insmod -m x.o

insmod now prints the starting text addr, bss addr,
rodata sections and it starts running my module. Now
from the gdb I try to load x.o using following command

add-symbol-file x.o <text-addr> -s <rodata> -s<bss>.

When I run the above command in GDB I get the
following error:
Dwarf Error: Could not find abbrev number 116. 

Any idea what could be the problem. I am using the
latest GDB 5.2.1. Thanks in advance






__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Dwarf Error: Could not find abbrev number 116.
  2002-08-18  6:36 Dwarf Error: Could not find abbrev number 116 kas turi
@ 2002-08-19  7:44 ` Jim Blandy
  2002-08-19 20:13   ` kas turi
  0 siblings, 1 reply; 3+ messages in thread
From: Jim Blandy @ 2002-08-19  7:44 UTC (permalink / raw)
  To: kas turi; +Cc: gdb


kas turi <inox_kas@yahoo.com> writes:
> When I run the above command in GDB I get the
> following error:
> Dwarf Error: Could not find abbrev number 116. 

This ostensibly means that the debug info in your executable file is
corrupted.  An `abbrev' describes the content and layout of a dwarf
debugging information entry.

What do you get if you run `readelf -wi' on your object file?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Dwarf Error: Could not find abbrev number 116.
  2002-08-19  7:44 ` Jim Blandy
@ 2002-08-19 20:13   ` kas turi
  0 siblings, 0 replies; 3+ messages in thread
From: kas turi @ 2002-08-19 20:13 UTC (permalink / raw)
  To: Jim Blandy; +Cc: gdb

Hi Jim
  Thanks for responding. When I run
powerpc-linux-readelf -w I get the following error:
Could not locate entry for abbrev number 105.

But today I found out that I can add the object files
separately in the gdb. If a.o and b.o are object files
and x.o is the loadable module then I am able to do:
add-symbol-file a.o <text-addr>
add-symbol-file b.o <text-addr + offset>
where offset : starting addr of the first function in
b.o file.
--- Jim Blandy <jimb@redhat.com> wrote:
> 
> kas turi <inox_kas@yahoo.com> writes:
> > When I run the above command in GDB I get the
> > following error:
> > Dwarf Error: Could not find abbrev number 116. 
> 
> This ostensibly means that the debug info in your
> executable file is
> corrupted.  An `abbrev' describes the content and
> layout of a dwarf
> debugging information entry.
> 
> What do you get if you run `readelf -wi' on your
> object file?


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-08-20  3:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-18  6:36 Dwarf Error: Could not find abbrev number 116 kas turi
2002-08-19  7:44 ` Jim Blandy
2002-08-19 20:13   ` kas turi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox