[LLVMbugs] [Bug 23145] New: llvm-symbolizer doesn't work on Windows

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 7 06:40:40 PDT 2015


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: unassignedbugs at nondot.org
          Reporter: timurrrr at google.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150407/0699ae41/attachment.html>


More information about the llvm-bugs mailing list