[lldb-dev] What is the concept behind AppleObjCTrampolineHandler::AppleObjCVTables ?

2017-05-18 Thread Nat! via lldb-dev
At first I thought it might have something to do with C++. But then I looked a little closer and then it looked like it is building up information about information contained in a linked list called "gdb_objc_trampolines". A google search yields: https://opensource.apple.com/source/objc4/ob

Re: [lldb-dev] What is the concept behind AppleObjCTrampolineHandler::AppleObjCVTables ?

2017-05-18 Thread Jim Ingham via lldb-dev
One of the strategies for speeding up ObjC dispatch was for the runtime to include a vtable that did direct dispatch for some very common methods (e.g. -[NSArray count]). Since method dispatch is dynamic, we always have to figure out the implementation for a given selector, so we had to be able

Re: [lldb-dev] What is the concept behind AppleObjCTrampolineHandler::AppleObjCVTables ?

2017-05-18 Thread Nat! via lldb-dev
Thanks for the answer, it makes it clearer. I have my own Objective-C runtime, and I am using AppleV1 as a starting point for my own LanguageRuntime plugin. I didn't even know, that the vtab wasn't used anymore in Apple's Objective-C :) Ciao Nat! _