After import a module from lldb, the functions in this module aren't available in the first call, subsequent calls to the same function are ok. It could be reproduced by these steps, Launch TOT lldb on MacOSX, (lldb) expr @import Darwin (lldb) expr MIN(5, 8) error: use of undeclared identifier 'MIN' error: 1 errors parsing expression (lldb) expr MIN(5, 8) (int) $0 = 5 (lldb) expr MIN(5, 8) (int) $1 = 5 This started to happen after http://llvm.org/viewvc/llvm-project?view=revision&revision=242868
This should be resolved by clang r269554.