Re: [lldb-dev] Trying to understand AppleObjCRuntimeV1::CreateObjectChecker

2016-07-01 Thread Jim Ingham via lldb-dev
Your guess about the use of the checkers is right. The code you are looking at compiles and inserts this function in the target, then when compiling future expressions, if we detect a reference to an ObjC object, we insert a call to the checker into the JIT'ed code before accessing the object.

[lldb-dev] Trying to understand AppleObjCRuntimeV1::CreateObjectChecker

2016-07-01 Thread Nat! via lldb-dev
Hi is this funny function AppleObjCRuntimeV1::CreateObjectChecker actually used ? First of all the snprintf is wrapped in an assert (!?). If the code gets compiled with -DNDEBUG, the function would pretty much do nothing. Second, I guess, that this is some C-code that gets compiled on the