Skip to content

Commit

Permalink
32bit linux support
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Aug 19, 2010
1 parent 716a950 commit 8011260
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/perftools.c
Expand Up @@ -319,7 +319,11 @@ uc_get_ip(ucontext_t *uc) {
# define program_counter uc_mcontext->__ss.__eip
# endif
# else
# define program_counter uc_mcontext.gregs[REG_RIP]
# ifdef REG_RIP
# define program_counter uc_mcontext.gregs[REG_RIP]
# else
# define program_counter uc_mcontext.gregs[REG_EIP]
# endif
# endif
return (char**)&uc->program_counter;
}
Expand Down

0 comments on commit 8011260

Please sign in to comment.