[LLVMdev] a problem of jit debug

yr tang tangyr1984 at gmail.com
Mon Jun 6 22:30:42 PDT 2011


the reason I built llvm with vc is that I am familiar with vc. At
first i also thing that build llvm with MingW will solve this problem.
but after I read the source code

void JITDebugRegisterer::RegisterFunction(const Function *F, DebugInfo &I) {
  // TODO: Support non-ELF platforms.
  if (!TM.getELFWriterInfo())
    return;
......
}
I thing MinGW is helpless with debug jit on win. getELFWriterInfo
returns true only on linux ,and the RegisterFunction gen symbol
infomation only on linux.

2011/6/7 êífÈÎ <chenwj at iis.sinica.edu.tw>:
>> so as you said , there is no hop for debug jit on windows?
>
>  I have no idea. Maybe someone familiar with LLVM on Windows can
> answer your question.
>
>  But I have a question for you, you said you built LLVM with Visual
> Studio and debugged your program with GDB. I doubt the Visual Studio
> produces the debugging information recognized by GDB. Why not build
> LLVM with MinGW or someting like that?
>
> Regards,
> chenwj
>
> --
> Wei-Ren Chen (êífÈÎ)
> Computer Systems Lab, Institute of Information Science,
> Academia Sinica, Taiwan (R.O.C.)
> Tel:886-2-2788-3799 #1667
>




More information about the llvm-dev mailing list