Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: [Gdb-discuss] Dwarf Error: Cannot find referent at offset XXXXXX
       [not found] <F21CE557E34E8340B6777F799626EB0DE8442A@kwisrv3.kwi.intra.kyocera-wireless.com>
@ 2004-09-08 16:27 ` Jim Blandy
  0 siblings, 0 replies; only message in thread
From: Jim Blandy @ 2004-09-08 16:27 UTC (permalink / raw)
  To: Sachidananda Swain
  Cc: Daniel Berlin, steve.miller, Lan.Zhang, gdb, port-arm, gdb,
	Lin.Colin, grante, gdb-discuss, davidm, drow


Sachidananda Swain <sachidananda@kyocera-wireless.com> writes:
> I am working on GDB for debugging. Tried with all gdb version and in all
> cases I am getting Dwarf error. Please tell me how to overcome this error.
> What I feel that there may be mismatching of dwarf format between ads
> compiler and gdb. I saw so many numbers of people facing this problem. So
> tell be very frankly that this problem can be solved or not; otherwise I
> have to close this project because I am in a deadline. If any where I am
> doing mistake please tell me how to do this. Once I can able to communicate
> >From host with all commands then I will start writing gdb-stub for target
> side. I will be waiting for u r reply.

I'm not familiar with the ADS compiler; it may be generating Dwarf 2
information that GDB cannot handle.  The Dwarf 2 information in an
executable's .debug_info section is divided into a series of
"compilation units".  Each compilation unit is a tree of "DIEs"
(Debugging Information Entries)".  Dwarf 2 allows dies in one
compilation unit to point to dies in other compilation units, but GDB
does not support this yet.

You might try running 'readelf -wi' on your executable, and looking at
the die for the variable you're trying to print.  If it includes a
reference printed as '<#number>' instead of '<number>', then that is
an inter-compilation-unit reference.

If that is the case, then you might check out the GDB branch
"drow_intercu-20040221-branch" and try that debugger.  Follow the
instructions to login on this page:

  http://sources.redhat.com/gdb/current

and then check out the sources using this command:

  cvs -d :pserver:anoncvs@sources.redhat.com:/cvs/src co -r drow_intercu-20040221-branch gdb+dejagnu

I'd be interested to see the output from 'readelf -wi'; if it's not
too huge, could you post it here?


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-08 16:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <F21CE557E34E8340B6777F799626EB0DE8442A@kwisrv3.kwi.intra.kyocera-wireless.com>
2004-09-08 16:27 ` [Gdb-discuss] Dwarf Error: Cannot find referent at offset XXXXXX Jim Blandy

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