so as you said , there is no hop for debug jit on windows? 2011/6/7 ��f�� <chenwj at iis.sinica.edu.tw>:> Hi, Tang > >> but in the source code i find this comment. >> // ELF is a reasonably sane default and the only other X86 targets we >> // support are Darwin and Windows. Just use "not those". > > I guess you found above comment in lib/Target/X86/X86Subtarget.h. > But I think X86Subtarget.h is only related to the codegen, but NOT > the debugging information. The comment means you can generate code > for Linux, Darwin and Windows on X86. > > 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 >
> 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 (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667
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 >