search for: keymgr_gcc3_dw2_obj_list

Displaying 1 result from an estimated 1 matches for "keymgr_gcc3_dw2_obj_list".

2015 Jul 27
0
[LLVMdev] Dynamically adding exception frames in the macintosh OS X
...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<30000; i++) { 180 void *p=_keymgr_get_and_lock_processwide_ptr(i); 181 if (p) printf...