[lldb-dev] --top-level doesn't work in lldb for Objective-C or Swift :(

Rex Fenley via lldb-dev lldb-dev at lists.llvm.org
Tue Oct 4 15:57:49 PDT 2016

Hey lldb team!

I'm trying to use `expr --top-level` from lldb in Xcode but it throws
errors like the following:

(lldb) expression --top-level -- NSString *str = @"This is a string";
Error [IRForTarget]: Couldn't replace an Objective-C constant string with a
dynamic string
error: cannot import unsupported AST node ObjCStringLiteral
error: The expression could not be prepared to run in the target

It seems like top-level only supports raw C code and not Objective-C. Is
there an option we can set to support this? Is there somewhere in lldb's
source code that could help point us to fixing this?

Thank you, you guys rule!


Rex Fenley  |  IOS DEVELOPER

Remind.com <https://www.remind.com/> |  BLOG <http://blog.remind.com/>
US <https://twitter.com/remindhq>  |  LIKE US
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20161004/f14f43ce/attachment.html>

More information about the lldb-dev mailing list