[Issue 1079] gdb on linux: Dwarf Error: Cannot find DIE at 0xb705 referenced from DIE at 0x250

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 3 10:30:54 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1079





------- Comment #3 from onlystupidspamhere at yahoo.se  2007-07-03 12:30 -------
(In reply to comment #1)
> Can you please provide some sample code where this happens?
> 

Here's a sample (die.d) that used to work some time ago:

  void main() {
    Object foo = null;
    auto b = foo.toUtf8;
  }

You need dmd 1.0xx (1.016 - 1.018 at least cause this) + tango (I'm using the
svn version). You also need to use -g switch.

$ dmd -g die.d
gcc die.o -o die -g -m32 -Xlinker -L/home/jm/d/dsss/lib -lphobos -lpthread -lm

$ gdb die
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /home/jm/tmp/die
[Thread debugging using libthread_db enabled]
[New Thread -1210349888 (LWP 4919)]
Die: DW_TAG_<unknown> (abbrev = 6, offset = 88)
        has children: FALSE
        attributes:
                DW_AT_byte_size (DW_FORM_data1) constant: 8
                DW_AT_type (DW_FORM_ref4) constant ref: 80 (adjusted)
Dwarf Error: Cannot find type of die [in module /home/jm/tmp/die]
(gdb)


-- 



More information about the Digitalmars-d-bugs mailing list