In parser lldb expressionslldb is currently not the equivalent of gdb foo.c :: function meta-symbol to encode a function from a specific source file.
, , bugreporter.apple.com. , , - , , , , ...
nonce . printf, , , libsystem_c.dylib OS X. , :
(lldb) image lookup -vn printf libsystem_c.dylib
1 match found in /usr/lib/system/libsystem_c.dylib:
Address: libsystem_c.dylib[0x0000000000042948] (libsystem_c.dylib.__TEXT.__text + 266856)
Summary: libsystem_c.dylib`printf
Module: file = "/usr/lib/system/libsystem_c.dylib", arch = "x86_64"
Symbol: id = {0x00000653}, range = [0x00007fff91307948-0x00007fff91307a2c), name="printf"
( ) - dylib, , . . , , , , , - , . 0x00007fff91307948 - , .
. , , :
(lldb) expr typedef int (*$printf_type)(const char *, ...)
(lldb) expr $printf_type $printf_function = ($printf_type) 0x00007fff91307948
, :
(lldb) expr $printf_function("Hello world %d times.\n", 400)
Hello world 400 times.
(int) $2 = 23
, Python, , . API Python (lldb-talk ), , ..