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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 20 20:53:26 PST 2010


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



--- Comment #15 from Bernard Helyer <blood.of.life at gmail.com> 2010-01-20 20:53:25 PST ---
This seems to have something to do with arrays (or manifests itself when they
are present):

  [test]$ cat nolist.d 
  void main()
  {
      int i = 0;

      i++;
      assert(i == 1);
      i++;
      assert(i == 2);
      i++;
      assert(i == 3);
  }

That debugs fine, while

[test]$ cat list.d 
void main()
{
    int[] i = new int[1];

    i[0]++;
    assert(i[0] == 1);
    i[0]++;
    assert(i[0] == 2);
    i[0]++;
    assert(i[0] == 3);
}


debugging these:

[test]$ dgdb -q nolist
(gdb) break _Dmain
Breakpoint 1 at 0x80490aa: file nolist.d, line 1.
(gdb) run
Starting program: /home/bernard/src/dmd2/src/test/nolist 
[Thread debugging using libthread_db enabled]
[New Thread 0xb75c46d0 (LWP 27012)]
[Switching to Thread 0xb75c46d0 (LWP 27012)]

Breakpoint 1, D main () at nolist.d:3
3        int i = 0;
Current language:  auto; currently d
(gdb) quit
The program is running.  Exit anyway? (y or n) y
[test]$ dgdb -q list
(gdb) break _Dmain
Die: DW_TAG_<unknown> (abbrev = 4, offset = 460)
    has children: FALSE
    attributes:
        DW_AT_byte_size (DW_FORM_data1) constant: 8
        DW_AT_type (DW_FORM_ref4) constant ref: 453 (adjusted)
Dwarf Error: Cannot find type of die [in module
/home/bernard/src/dmd2/src/test/list]
(gdb) quit
[test]$ gdb -q list
(gdb) break _Dmain
Die: DW_TAG_<unknown> (abbrev = 4, offset = 460)
    has children: FALSE
    attributes:
        DW_AT_byte_size (DW_FORM_data1) constant: 8
        DW_AT_type (DW_FORM_ref4) constant ref: 453 (adjusted)
Dwarf Error: Cannot find type of die [in module
/home/bernard/src/dmd2/src/test/list]




Where `dgdb` is a patch GDB 6.8 and `gdb` is the normal GDB that ships with
Jaunty. The `nolist` binary is debuggable with the stock GDB, too.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list