search for: debuggingjitedcod

Displaying 20 results from an estimated 55 matches for "debuggingjitedcod".

Did you mean: debuggingjitedcode
2017 Oct 07
2
Debugging JIT'ed code with ORC JIT?
Hi, I’m wondering if it’s possible to debug code JIT’ed with the newer ORC JIT. The LLVM documentation has a page at llvm.org/docs/DebuggingJITedCode.html <http://llvm.org/docs/DebuggingJITedCode.html> showing an example of using gdb to debug MCJIT’ed code, but has no mention of ORC JIT. From searching around online I’ve gotten the impression that ORC JIT does *not* support providing debugging information to attached debuggers, but no d...
2010 Aug 10
4
[LLVMdev] sqlite3 crashing jit
...dress] in ?? () >> Cannot access memory at address [address2] >> >> > > Wow.  Something has really trashed your stack. No, he's just on linux x86_64 using JITed frames with no unwind information. That was the whole point of adding the support here: http://llvm.org/docs/DebuggingJITedCode.html See if you can get a stack trace using the directions there. Reid
2011 Jun 07
2
[LLVMdev] a problem of jit debug
Hi , I am new to llvm.I met a problem with the jit debug. According to DebuggingJITedCode.html ,I do the same step of this document. But my gdb can't get the symbol. When i did the same thing on linux ,the result is correct. But on windows, i failed. Why? I build the llvm with vc2008, os winxp.
2010 Jun 19
2
[LLVMdev] [patch] New feature: debug info for function memory ranges (-jit-emit-debug-function-range)
Have you found http://llvm.org/docs/DebuggingJITedCode.html? The JIT already has support for something like this for gdb's benefit. Perftools and valgrind just don't know how to find it yet. On Sat, Jun 19, 2010 at 2:03 PM, Yuri <yuri at rawbw.com> wrote: > This new option (--jit-emit-debug-function-range) will allow to output > f...
2012 Aug 02
2
[LLVMdev] Questions about clang options
Hi, I am quite new to LLVM. I just compiled LLVM and clang on Ubuntu11.10 then followed the tutorial http://llvm.org/docs/DebuggingJITedCode.html clang -cc1 -O0 -g -emit-llvm showdebug.c where showdebug.c contains: #include<stdio.h> int main() { printf("hello\n"); return 0; } But I got Fatal error: 'stdio.h' file not found. However, clang showdebug.c has no problem. I know -g means to generate debu...
2017 Oct 11
2
Debugging JIT'ed code with ORC JIT?
Hi Connor, ...The LLVM documentation has a page at > llvm.org/docs/DebuggingJITedCode.html > showing an example of using gdb to debug MCJIT’ed code, but has no mention > of ORC JIT. What debugging support MCJIT has is provided by the RuntimeDyld utility, which ORC shares. I would expect anything in that document to apply to ORC as well, though I haven't tested it person...
2010 Feb 09
3
[LLVMdev] Debugging of LLVM-IR
...unction it crashed in and the stack trace though. Line numbers will probably come when the llvm-mc project is merged into the JIT. On Tue, Feb 9, 2010 at 9:37 AM, Garrison Venn <gvenn.cfe.dev at gmail.com> wrote: > Are you running this in a JIT? If so this will help: http://llvm.org/docs/DebuggingJITedCode.html. > > Garrison > > On Feb 9, 2010, at 10:33, Sebastian Schlunke wrote: > >> Hello, >> >> is there any way to debug a program in LLVM-IR line-by-line (i.e. with gdb)? >> >> The problem is, i have a program in human-readable-intermediate representatio...
2010 Jul 07
3
[LLVMdev] simple way to print disassembly of final code from jit?
...the time :-) b. On Tue, Jul 6, 2010 at 8:41 PM, Reid Kleckner <reid.kleckner at gmail.com> wrote: > If you're on a recent flavor of Linux, you may be able to just go into > gdb and type "disas <pointer-to-JITed-code>".  More detail here: > http://llvm.org/docs/DebuggingJITedCode.html > > If you still want to do it programmatically, I think you might be > stuck.  IIRC the length known by the JIT memory allocator is an > overestimate (it's rounded up for alignment), so the disassembler will > hit garbage at the end. > > Reid > > On Tue, Jul 6,...
2010 Jan 26
1
[LLVMdev] gdb on Mach-O
According to http://llvm.org/docs/DebuggingJITedCode.html only ELF objects are supported for gdb support of JIT generated code. Is this still true, or are Mach-O files now supported in 2.7 trunk? Thanks in advance Garrison
2010 Feb 09
2
[LLVMdev] Debugging of LLVM-IR
Hello, is there any way to debug a program in LLVM-IR line-by-line (i.e. with gdb)? The problem is, i have a program in human-readable-intermediate representation that segfaults, when executed. I want to know, which line in the IR causes this. Any help is appreciated. Best regards, Sebastian
2010 Feb 09
0
[LLVMdev] Debugging of LLVM-IR
Are you running this in a JIT? If so this will help: http://llvm.org/docs/DebuggingJITedCode.html. Garrison On Feb 9, 2010, at 10:33, Sebastian Schlunke wrote: > Hello, > > is there any way to debug a program in LLVM-IR line-by-line (i.e. with gdb)? > > The problem is, i have a program in human-readable-intermediate representation that segfaults, when executed. I want...
2010 Aug 10
0
[LLVMdev] sqlite3 crashing jit
...memory at address [address2] >>> >>> >> >> Wow. Something has really trashed your stack. > > No, he's just on linux x86_64 using JITed frames with no unwind > information. That was the whole point of adding the support here: > http://llvm.org/docs/DebuggingJITedCode.html > > See if you can get a stack trace using the directions there. If you build the JIT as an x86-64 application, it can't run code compiled with -m32. For example, on my system: $ file `which lli` /Users/sabre/llvm/Debug/bin/lli: Mach-O 64-bit executable x86_64 Trying to run cod...
2010 Aug 11
0
[LLVMdev] sqlite3 crashing jit
On Aug 10, 2010, at 5:09 PM, Reid Kleckner wrote: No, he's just on linux x86_64 using JITed frames with no unwind information. That was the whole point of adding the support here: http://llvm.org/docs/DebuggingJITedCode.html See if you can get a stack trace using the directions there. I had followed the directions on that page with llvm 2.6 to no avail. The Makefile I posted does use -fexceptions. When I ran `lli -jit-emit-debug' with llvm 2.6, lli said that -jit-emit-debug was an unrecognised command lin...
2011 Mar 20
0
[LLVMdev] how to debug with interpreter
...friend. In general, you can't disassemble x86 backwards, but gdb does a reasonably good job if you just guess. Alternatively, if you're on Linux, there's the gdb-jit interface, which should give you symbols and unwind tables without any extra effort on your part: http://llvm.org/docs/DebuggingJITedCode.html To answer your original question about the interpreter, you can pass -force-interpreter to lli or pass args to the execution engine creation, but the interpreter is considered incomplete and buggy. Its original purpose was to help debug the JIT, but now the JIT works reliably, so it hasn...
2011 Mar 21
1
[LLVMdev] how to debug with interpreter
On Sun, Mar 20, 2011 at 11:56 AM, Reid Kleckner <reid.kleckner at gmail.com> wrote: > Alternatively, if you're on Linux, there's the gdb-jit interface, > which should give you symbols and unwind tables without any extra > effort on your part: > http://llvm.org/docs/DebuggingJITedCode.html This page says to run `lli -jit-emit-debug myfile.bc' under gdb. Does the entire program need to be .bc files running through lli, or is there a way to pass that -jit-emit-debug flag to the C++ api, inside a normally compiled program? thanks, Rob
2011 Jun 07
0
[LLVMdev] a problem of jit debug
Hi, Tang > result is correct. But on windows, i failed. Why? I build the llvm > with vc2008, os winxp. At the end of http://llvm.org/docs/DebuggingJITedCode.html, it said, "At the time of this writing, LLVM only supports architectures that use ELF object files and it only generates symbols and DWARF CFA information." Maybe this is the reason why you read nothing on Windows. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, I...
2010 Jun 19
0
[LLVMdev] [patch] New feature: debug info for function memory ranges (-jit-emit-debug-function-range)
On 06/19/2010 14:14, Jeffrey Yasskin wrote: > Have you found http://llvm.org/docs/DebuggingJITedCode.html? The JIT > already has support for something like this for gdb's benefit Yes, I saw it and tried it. -jit-emit-debug generates ELF image in memory with debug info. Another option -jit-emit-debug-to-disk creates .o ELF files with debug info, one per function. If there are thousands o...
2011 Mar 19
2
[LLVMdev] how to debug with interpreter
Hi, I'm using the JIT execution engine for my language, and I'm finding it extremely painful to find bugs in generated code. I get a "seg fault" and I can't see where it happened. Writing a debugger or generating info for GDB seems like too much work at this point. Is there a way to use the Interpreter to run this code, stepping through and printing the LLVM
2010 Jul 07
0
[LLVMdev] simple way to print disassembly of final code from jit?
If you're on a recent flavor of Linux, you may be able to just go into gdb and type "disas <pointer-to-JITed-code>". More detail here: http://llvm.org/docs/DebuggingJITedCode.html If you still want to do it programmatically, I think you might be stuck. IIRC the length known by the JIT memory allocator is an overestimate (it's rounded up for alignment), so the disassembler will hit garbage at the end. Reid On Tue, Jul 6, 2010 at 3:07 PM, Bill O'Hara <bill...
2012 Jun 28
0
[LLVMdev] Counting instructions in MCJIT
...n uses Statistic class like "STATISTIC(EmittedInsts, "Number of machine instrs printed");" I don't know exactly about parallel code generation environment but this option seems like to work correctly in common case as following. This is an example from http://llvm.org/docs/DebuggingJITedCode.html. 1 int compute_factorial(int n) 2 { 3 if (n <= 1) 4 return 1; 5 6 int f = n; 7 while (--n > 1) 8 f *= n; 9 return f; 10 } 11 12 13 int main(int argc, char** argv) 14 { 15 if (argc < 2) 16 return -1; 17 char firstl...