Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Keith Walker" <kwalker@arm.com>
To: "'Terry Guo'" <flameroc@gmail.com>
Cc: <gdb@sourceware.org>
Subject: RE: How to locate the DIE from Dwarf Error message?
Date: Wed, 09 Apr 2014 09:53:00 -0000	[thread overview]
Message-ID: <000301cf53d9$93fbb8f0$bbf32ad0$@com> (raw)
In-Reply-To: <CAGbRaL7e_1v-DVHNwUNRZg5V4XhrViVtFw7pFCT9H8m1DqQu1g@mail.gmail.com>

I would expect that the error is referencing a DIE at an offset of 0x1d1b8
in the .debug_info (or possibly .debug_types) section.

I suspect that you will find that this DIE has an attribute which has a
reference which points at offset 0x0 which has caused this error message.

[ This is the DWARF equivalent of attempting to dereference a NULL pointer
:-) ]

Of course the real question will then be why is there a reference to 0x0
rather than to an actual DIE.

Keith

> -----Original Message-----
> From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On
> Behalf Of Terry Guo
> Sent: 09 April 2014 03:26
> To: gdb@sourceware.org
> Subject: How to locate the DIE from Dwarf Error message?
> 
> Hi there,
> 
> I am using gdb to debug my ELF file and getting below message:
> 
> Dwarf Error: Cannot find DIE at 0x0 referenced from DIE at 0x1d1b8 [in
> module /Users/darius/work/micro/ussio/ussio-dbg-bug/main.elf]
> 
> After dump the dwarf information from main.elf with command
> "arm-none-eabi-readelf -w main.elf", I can not find anything related
> to address 0x1d1b8. So what does the 0x1d1b8 stand for? How can I
> figure out which DIE at this address? Please help. Thanks.
> 
> BR,
> Terry




      reply	other threads:[~2014-04-09  9:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-09  2:26 Terry Guo
2014-04-09  9:53 ` Keith Walker [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000301cf53d9$93fbb8f0$bbf32ad0$@com' \
    --to=kwalker@arm.com \
    --cc=flameroc@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox