diff options
-rw-r--r-- | tapset/ChangeLog | 5 | ||||
-rw-r--r-- | tapset/errno.stp | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog index e198b9e5..4c65ccc0 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,8 @@ +2008-02-28 Will Cohen <wcohen@redhat.com> + + PR433780 + * errno.stp (returnstr): Handle unified i386/x86_64 reg names. + 2008-02-27 Masami Hiramatsu <mhiramat@redhat.com> * x86_64/syscalls.stp (syscall.iopl): Use new_iopl instead of level diff --git a/tapset/errno.stp b/tapset/errno.stp index a6b2c9cf..550e5d4f 100644 --- a/tapset/errno.stp +++ b/tapset/errno.stp @@ -358,7 +358,9 @@ function returnstr:string (returnp:long) %{ /* pure */ /* XXX: unfortunate duplication with return.stp:retval() */ if (CONTEXT->regs) { -#if defined (__i386__) +#if defined (STAPCONF_X86_UNIREGS) && (defined (__x86_64__) || defined (__i386__)) + ret = CONTEXT->regs->ax; +#elif defined (__i386__) ret = CONTEXT->regs->eax; #elif defined (__x86_64__) ret = CONTEXT->regs->rax; |