[Issue 18527] lldb: `frame variable` works with ldc2, not with dmd

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 19 13:26:17 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=18527

--- Comment #6 from Jacob Carlborg <doob at me.com> ---
DWARF related output from `dumpobj` for DMD:

[7] 000e0 0000 0006b0    0 0000   0 02000000 00 00 __debug_str __DWARF
[8] 000e0 0040 0006b0    0 0b78   6 02000000 00 00 __debug_ranges __DWARF
 0000:  38  5  0  0  0  0  0  0 38  5  0  0  0  0  0  0   8.......8.......
 0010:   0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0   ................
 0020:   0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0   ................
 0030:   0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0   ................
  [0] address x0000 section 15 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [1] address x0008 section 15 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [2] address x0010 section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [3] address x0018 section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [4] address x0020 section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [5] address x0028 section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
[9] 00120 00e4 0006f0    0 0ba8  18 02000000 00 00 __debug_loc __DWARF
 0000:  38  5  0  0  0  0  0  0 38  5  0  0  0  0  0  0   8.......8.......
 0010:   2  0 77  8 38  5  0  0  0  0  0  0 38  5  0  0   ..w.8.......8...
 0020:   0  0  0  0  2  0 77 10 38  5  0  0  0  0  0  0   ......w.8.......
 0030:  38  5  0  0  0  0  0  0  2  0 76 10  0  0  0  0   8.........v.....
 0040:   0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0   ................
 0050:   0  0  0  0  0  0  0  0  0  0  0  0  2  0 77  8   ..............w.
 0060:   0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0   ................
 0070:   2  0 77 10  0  0  0  0  0  0  0  0  0  0  0  0   ..w.............
 0080:   0  0  0  0  2  0 76 10  0  0  0  0  0  0  0  0   ......v.........
 0090:   0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0   ................
 00a0:   0  0  0  0  0  0  0  0  2  0 77  8  0  0  0  0   ..........w.....
 00b0:   0  0  0  0  0  0  0  0  0  0  0  0  2  0 77 10   ..............w.
 00c0:   0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0   ................
 00d0:   2  0 76 10  0  0  0  0  0  0  0  0  0  0  0  0   ..v.............
 00e0:   0  0  0  0                                       ....
  [0] address x0000 section 15 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [1] address x0008 section 15 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [2] address x0014 section 15 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [3] address x001c section 15 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [4] address x0028 section 15 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [5] address x0030 section 15 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [6] address x004c section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [7] address x0054 section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [8] address x0060 section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [9] address x0068 section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [10] address x0074 section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [11] address x007c section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [12] address x0098 section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [13] address x00a0 section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [14] address x00ac section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [15] address x00b4 section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [16] address x00c0 section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [17] address x00c8 section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
[10] 00204 00d5 0007d4    0 0c38   3 00000000 00 00 __debug_line __DWARF
 0000:  d1  0  0  0  2  0 81  0  0  0  1  1 fb  e  a  0   ................
 0010:   1  1  1  1  0  0  0  1  0 6d 61 69 6e 2e 64  0   .........main.d.
 0020:   0  0  0 2f 55 73 65 72 73 2f 64 6f 6f 62 2f 2e   .../Users/doob/.
 0030:  64 76 6d 2f 63 6f 6d 70 69 6c 65 72 73 2f 64 6d   dvm/compilers/dm
 0040:  64 2d 32 2e 30 39 30 2e 31 2f 6f 73 78 2f 62 69   d-2.090.1/osx/bi
 0050:  6e 2f 2e 2e 2f 2e 2e 2f 73 72 63 2f 64 72 75 6e   n/../../src/drun
 0060:  74 69 6d 65 2f 69 6d 70 6f 72 74 2f 63 6f 72 65   time/import/core
 0070:  2f 69 6e 74 65 72 6e 61 6c 2f 65 6e 74 72 79 70   /internal/entryp
 0080:  6f 69 6e 74 2e 64  0  0  0  0  0  0  9  2  0  0   oint.d..........
 0090:   0  0  0  0  0  0  4  1  3  a  1 49 b8  2 2c  0   ...........I..,.
 00a0:   1  1  0  9  2  0  0  0  0  0  0  0  0  4  2  3   ................
 00b0:  1f  2 18  1 e3  3  1  2 13  1  2  2  0  1  1  0   ................
 00c0:   9  2 38  5  0  0  0  0  0  0  4  1 11 ab 72 66   ..8...........rf
 00d0:   2  2  0  1  1                                    .....
  [0] address x008e section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [1] address x00a5 section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [2] address x00c2 section 15 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
[11] 002d9 008f 0008a9    0 0000   0 02000000 00 00 __debug_abbrev __DWARF
 0000:   1 11  1 25  8 13  b  3  8 1b  8 11  1 52  1 55   ...%.........R.U
 0010:   6 10  6  0  0  2 1e  0  3  8  0  0  3 24  0  3   .............$..
 0020:   8  b  b 3e  b  0  0  4  5  0  3  8 49 13 34  c   ...>........I.4.
 0030:   2  a  0  0  5 34  0  3  8 49 13 34  c  2  a  0   .....4...I.4....
 0040:   0  6 2e  1  1 13  3  8 87 40  8 3a  b 3b  5 11   ......... at .:.;..
 0050:   1 12  1 40  6  0  0  7 2e  0  3  8 87 40  8 3a   ... at .........@.:
 0060:   b 3b  5 3f  c 11  1 12  1 40  6  0  0  8  f  0   .;.?..... at ......
 0070:  49 13  0  0  9 2e  1  1 13  3  8 87 40  8 3a  b   I........... at .:.
 0080:  3b  5 49 13 3f  c 11  1 12  1 40  6  0  0  0      ;.I.?..... at ....
[12] 00368 0155 000938    0 0c50   6 02000000 00 00 __debug_info __DWARF
 0000:  51  1  0  0  3  0  0  0  0  0  8  1 44 69 67 69   Q...........Digi
 0010:  74 61 6c 20 4d 61 72 73 20 44 20 76 32 2e 30 39   tal Mars D v2.09
 0020:  30 2e 31  0 13 6d 61 69 6e 2e 64  0 2f 55 73 65   0.1..main.d./Use
 0030:  72 73 2f 64 6f 6f 62 2f 64 65 76 65 6c 6f 70 6d   rs/doob/developm
 0040:  65 6e 74 2f 64  0  0  0  0  0  0  0  0  0  0  0   ent/d...........
 0050:   0  0  0  0  0  0  0  0  0  0  0  0  0  0  2 6d   ...............m
 0060:  61 69 6e  0  3 69 6e 74  0  4  5  6 c2  0  0  0   ain..int........
 0070:  6d 61 69 6e 2e 66 6f 6f  0 5f 44 34 6d 61 69 6e   main.foo._D4main
 0080:  33 66 6f 6f 46 69 5a 76  0  1  3  0 38  5  0  0   3fooFiZv....8...
 0090:   0  0  0  0 38  5  0  0  0  0  0  0  0  0  0  0   ....8...........
 00a0:   4 61  0 64  0  0  0  0  2 91 68  5 62  0 64  0   .a.d......h.b.d.
 00b0:   0  0  0  2 91 60  5 63  0 64  0  0  0  0  2 91   .....`.c.d......
 00c0:  64  0  7 44 20 6d 61 69 6e  0 5f 44 6d 61 69 6e   d..D main._Dmain
 00d0:   0  1  b  0  1  0  0  0  0  0  0  0  0  0  0  0   ................
 00e0:   0  0  0  0  0 4c  0  0  0  3 63 68 61 72  0  1   .....L....char..
 00f0:   8  8 e9  0  0  0  8 f1  0  0  0  9 54  1  0  0   ............T...
 0100:  6d 61 69 6e 2e 5f 64 5f 63 6d 61 69 6e 21 28 29   main._d_cmain!()
 0110:  2e 6d 61 69 6e  0 6d 61 69 6e  0  2 20  0 64  0   .main.main.. .d.
 0120:   0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0   ................
 0130:   0  0  0 98  0  0  0  4 61 72 67 63  0 64  0  0   ........argc.d..
 0140:   0  0  2 91 60  4 61 72 67 76  0 f6  0  0  0  0   ....`.argv......
 0150:   2 91 68  0  0                                    ..h..
  [0] address x008c section 15 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [1] address x0094 section 15 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [2] address x00d5 section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [3] address x00dd section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [4] address x0123 section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [5] address x012b section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
[13] 004bd 003a 000a8d    0 0000   0 02000000 00 00 __debug_pubnames __DWARF
 0000:  36  0  0  0  2  0  0  0  0  0 55  1  0  0 6b  0   6.........U...k.
 0010:   0  0 5f 44 34 6d 61 69 6e 33 66 6f 6f 46 69 5a   .._D4main3fooFiZ
 0020:  76  0 c2  0  0  0 5f 44 6d 61 69 6e  0 fb  0  0   v....._Dmain....
 0030:   0 6d 61 69 6e  0  0  0  0  0                     .main.....
[14] 004f7 0040 000ac7    0 0c80   2 02000000 00 00 __debug_aranges __DWARF
 0000:  3c  0  0  0  2  0  0  0  0  0  8  0  0  0  0  0   <...............
 0010:  38  5  0  0  0  0  0  0 1a  0  0  0  0  0  0  0   8...............
 0020:   0  0  0  0  0  0  0  0 3c  0  0  0  0  0  0  0   ........<.......
 0030:   0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0   ................
  [0] address x0010 section 15 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED
  [1] address x0020 section 1 pcrel 0 length 3 extern 0 type 0 RELOC_UNSIGNED

--


More information about the Digitalmars-d-bugs mailing list