Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

DWARF debug headers missing from OSX native binaries produced by RyuJIT #2625

Open
tijoytom-zz opened this issue Jan 31, 2017 · 3 comments
Open

Comments

@tijoytom-zz
Copy link
Contributor

Follow the documentation https://github.com/dotnet/corert/blob/master/Documentation/how-to-build-and-run-ilcompiler-in-console-shell-prompt.md to setup ILC compiler to work with CLI

Linux ( Ubunutu 14.04LTE)
objdump -h bin/Debug/netcoreapp1.0/native/hello

Idx Name Size VMA LMA File off Algn
0 .interp 0000001c 0000000000400270 0000000000400270 00000270 20
CONTENTS, ALLOC, LOAD, READONLY, DATA
1 .note.ABI-tag 00000020 000000000040028c 000000000040028c 0000028c 2
2
CONTENTS, ALLOC, LOAD, READONLY, DATA
35 .debug_abbrev 000116d3 0000000000000000 0000000000000000 009ab231 20
CONTENTS, READONLY, DEBUGGING
36 .debug_line 000a3009 0000000000000000 0000000000000000 009bc904 2
0
CONTENTS, READONLY, DEBUGGING
37 .debug_str 0005a627 0000000000000000 0000000000000000 00a5f90d 20
CONTENTS, READONLY, DEBUGGING
38 .debug_loc 0000eff3 0000000000000000 0000000000000000 00ab9f34 2
0
CONTENTS, READONLY, DEBUGGING
39 .debug_macinfo 00000040 0000000000000000 0000000000000000 00ac8f27 20
CONTENTS, READONLY, DEBUGGING
40 .debug_pubtypes 0001bac9 0000000000000000 0000000000000000 00ac8f67 2
0
CONTENTS, READONLY, DEBUGGING
41 .debug_ranges 00011b40 0000000000000000 0000000000000000 00ae4a30 2**0
CONTENTS, READONLY, DEBUGGING

MACOS Sierra
objdump -h bin/Debug/netcoreapp1.0/native/hello

0 __text 00121a6b 0000000100001600 TEXT
1 __stubs 0000054c 000000010012306c TEXT
2 __stub_helper 00000894 00000001001235b8 TEXT
3 __managedcode 003fb0e2 0000000100123e4c DATA
4 __const 000b6f78 000000010051ef30 DATA
5 __cstring 0001319e 00000001005d5ea8 DATA
6 __gcc_except_tab 000018a8 00000001005e9048 DATA
7 __unwind_info 0002ac60 00000001005ea8f0 DATA
8 __eh_frame 0009bab0 0000000100615550 DATA
9 __nl_symbol_ptr 00000010 00000001006b1000 DATA
10 __got 00000040 00000001006b1010 DATA
11 __la_symbol_ptr 00000710 00000001006b1050 DATA
12 __mod_init_func 00000018 00000001006b1760 DATA
13 __const 00000548 00000001006b1780 DATA
14 __data 000c75c0 00000001006b1cd0 DATA
15 __modules 00000008 0000000100779290 DATA
16 .corert_eh_table 000fe648 0000000100779298 DATA
17 __thread_vars 000000a8 00000001008778e0 DATA
18 __thread_data 000000d8 0000000100877988 DATA
19 __thread_bss 00000029 0000000100877a60 DATA
20 __bss 0000301c 0000000100878000 BSS
21 __common 000052c9 000000010087b020 BSS

@MichalStrehovsky
Copy link
Member

FWIW, the line number information was supposedly enabled in #837. This sounds like a regression.

Dwarf debug info for types and vars is tracked in #785 and #783, respectively.

@sandreenko
Copy link

@MichalStrehovsky are you sure that it worked in the past? I have tried to checkout old commits and wasn't able to set breakpoint set -n MyFunctionName there.

@MichalStrehovsky
Copy link
Member

@MichalStrehovsky are you sure that it worked in the past?

I don't have personal experience - I just remembered there was a commit supposedly enabling it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants