Skip to content

Commit

Permalink
Nope.
Browse files Browse the repository at this point in the history
  • Loading branch information
charlieMonroe committed Aug 20, 2013
1 parent 7933772 commit f6979d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Gstep.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,14 @@ unw_step (unw_cursor_t *cursor)

c->frame_info.frame_type = UNW_X86_64_FRAME_GUESSED;
c->frame_info.cfa_reg_rsp = 0;
c->frame_info.cfa_reg_offset = 16;
c->frame_info.rbp_cfa_offset = -16;
c->frame_info.cfa_reg_offset = 8;
c->frame_info.rbp_cfa_offset = 0;

unw_word_t prev_rbp;
unw_get_reg((unw_cursor_t*)c, UNW_TDEP_BP, &prev_rbp);
void **prev_rbp_ptr = (void**)prev_rbp;
unw_word_t delta = ((unw_word_t)(*prev_rbp_ptr) - prev_rbp);
c->dwarf.cfa -= delta;
c->dwarf.cfa += delta;

unw_word_t sp;
long offset;
Expand Down

0 comments on commit f6979d0

Please sign in to comment.