https://llvm.org/bugs/show_bug.cgi?id=23145

            Bug ID: 23145
           Summary: llvm-symbolizer doesn't work on Windows
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Example:
------------
$ cat test.c
void foo() {
}

int main() {
  foo();
}
------------

$ cl -nologo -Zi test.c -Fetest.exe
[or clang-cl -Zi test.c -Fetest.exe]

$ dumpbin /HEADERS test.exe | grep "image base"
          400000 image base (00400000 to 0042DFFF)

$ dumpbin /DISASM test.exe | grep "_foo:\|_main:" --after-context=1
_foo:
  00401020: 55                 push        ebp
--
_main:
  00401030: 55                 push        ebp

Now,
-------------
$ cat symbols
0x1020
0x1030
-------------

And finally:
----------------------------------------------
$ cat symbols | llvm-symbolizer --obj test.exe
??
??:0:0

??
??:0:0
----------------------------------------------

The final command should instead tell me these are functions 'foo' and 'main'
in file test.cpp on lines 1 and 4 respectively.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to