From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14118 invoked by alias); 9 Apr 2014 09:53:29 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 14108 invoked by uid 89); 9 Apr 2014 09:53:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 Apr 2014 09:53:27 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Wed, 09 Apr 2014 10:53:24 +0100 Received: from e106112 ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 9 Apr 2014 10:53:37 +0100 From: "Keith Walker" To: "'Terry Guo'" Cc: References: In-Reply-To: Subject: RE: How to locate the DIE from Dwarf Error message? Date: Wed, 09 Apr 2014 09:53:00 -0000 Message-ID: <000301cf53d9$93fbb8f0$bbf32ad0$@com> MIME-Version: 1.0 X-MC-Unique: 114040910532401101 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00025.txt.bz2 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? >=20 > Hi there, >=20 > I am using gdb to debug my ELF file and getting below message: >=20 > Dwarf Error: Cannot find DIE at 0x0 referenced from DIE at 0x1d1b8 [in > module /Users/darius/work/micro/ussio/ussio-dbg-bug/main.elf] >=20 > 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. >=20 > BR, > Terry