[lldb-dev] Testing MCJIT (vs. standard JIT)

Ed Maste emaste at freebsd.org
Thu Aug 29 13:59:16 PDT 2013

On 29 August 2013 15:49, Greg Clayton <gclayton at apple.com> wrote:

> Just launch a program and try to run:
> (lldb) expr (void *)malloc(123)
> This will tell you if simple things are working.

Thanks.  Without MCJIT I get:

(lldb) expr (void *)malloc(123)
error: Expression can't be run, because there is no JIT compiled function

and it works with MCJIT enabled:

(lldb) expr (void *)malloc(123)
(void *) $0 = 0x0000000801007080

so I'll remove the FreeBSD-specific #ifdef case.

More information about the lldb-dev mailing list