[lldb-dev] Calling a function from lldb (on Linux)

Tobias Grosser tobias at grosser.es
Wed Apr 10 07:23:50 PDT 2013


Hi,

I just downloaded lldb-3.3 from http://llvm.org/apt/ and was starting to 
play with it on my Ubuntu 12.10 installation.

Loading a program, running it, setting break points and stepping through 
the source code works great. However, calling functions does 
unfortunately not work.

(lldb) call malloc(4)
error: 'malloc' has unknown return type; cast the call to its declared 
return type
error: 1 errors parsing expression

(lldb) p (void*) malloc(4)
Segmentation fault (core dumped)

Is this expected on Linux? Any ideas how to fix this?

Thanks,
Tobi




More information about the lldb-dev mailing list