[LLVMdev] Connecting JITted code to gdb

Eli Friedman eli.friedman at gmail.com
Fri Mar 27 14:40:02 PDT 2009


On Fri, Mar 27, 2009 at 2:25 PM, Jeffrey Yasskin <jyasskin at google.com> wrote:
> On Fri, Mar 27, 2009 at 3:48 PM, Evan Cheng <evan.cheng at apple.com> wrote:
>> Run with -debug-only=jit.
>
> OT: I take it the recommended model for tools that embed LLVM is for
> them to accept all of LLVM's command line arguments on their own
> command lines?

Well, sort of... LLVM considers whatever you pass to
ParseCommandLineOptions to be the command line, so you can tweak it
depending on your needs.

> For Python, it'd be much nicer to make this stuff
> tweakable through a module at runtime, or even, for thread-safety
> reasons, as a parameter to each call that cares about it.

Command-line options are used for convenience in a variety of
places... if there's some specific option that you need to modify at
runtime that can't be changed in any other way, patches to change that
are welcome.

Also, IIRC, LLVM isn't threadsafe at the moment...

-Eli



More information about the llvm-dev mailing list