[LLVMdev] [patch] New feature: debug info for function memory ranges (-jit-emit-debug-function-range)
jyasskin at google.com
Sat Jun 19 14:14:27 PDT 2010
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
> function information for memory ranges that functions occupy in memory while
> they run in JIT. File format generated is like this:
> 0x5000000 0x5001000 function_name_is_here
> This feature is useful for external tools like valgrind and google-perftools
> to profile the code when it is run in JIT. Particularly google-perftools
> will have a special option (--external_symbols) that will be able to import
> this file.
> Note: to be useful this flag should be used with -disable-fp-elim to
> generate standard prologs.
> Thank you,
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev