Displaying 1 result from an estimated 1 matches for "libgccobjectinfo".
2015 Jul 27
0
[LLVMdev] Dynamically adding exception frames in the macintosh OS X
...ource code.
Method 1:
/// darwin_register_frame - Since __register_frame does not work with
darwin's
/// libgcc,we provide our own function, which "tricks" libgcc by
modifying the
/// "Dwarf2 object list" key.
void DarwinRegisterFrame(object *ob) {
// Get the key.
LibgccObjectInfo* LOI = (struct LibgccObjectInfo*)
_keymgr_get_and_lock_processwide_ptr(KEYMGR_GCC3_DW2_OBJ_LIST);
...
}
This code is taken from the official Apple open source site. There is a
little problem however...
_keymgr_get_and_lock_processwide_ptr returns ALWAYS ZERO!
I did a loop
179 for (int i=0; i...