- int ret;
- for(ret=1; ret >= 0; ret = unw_step(&cursor)) {
-
- // Find the frame name:
- unw_word_t off;
- char frame_name[256];
- if(unw_get_proc_name(&cursor, frame_name, sizeof (frame_name), &off)!=0) {
- continue;
- }
-
- XBT_DEBUG("Frame #%i %s", (int) count, frame_name);
-
- // Stop before context switch with maestro
- if(!strcmp(frame_name, "smx_ctx_sysv_wrapper")) {
- break;
- }
-
- ++count;
-
- unw_word_t ip, sp;
- if(unw_get_reg(&cursor, UNW_REG_IP, &ip))
- continue;
- if(unw_get_reg(&cursor, UNW_REG_SP, &sp))
- continue;
-
- MC_HASH(*hash, ip);
-
- // Find the object info: