diff options
author | wcohen <wcohen> | 2008-02-28 20:47:11 +0000 |
---|---|---|
committer | wcohen <wcohen> | 2008-02-28 20:47:11 +0000 |
commit | 7e6c2d0bd81af35151167ca75fc1b7d20a9e9a7d (patch) | |
tree | 04a5906ea6d670c2b39335500168d4dbaa5c5237 | |
parent | 83184d369d0a88fda5b3a957a17db4fbcfc5b8a5 (diff) | |
download | systemtap-steved-7e6c2d0bd81af35151167ca75fc1b7d20a9e9a7d.tar.gz systemtap-steved-7e6c2d0bd81af35151167ca75fc1b7d20a9e9a7d.tar.xz systemtap-steved-7e6c2d0bd81af35151167ca75fc1b7d20a9e9a7d.zip |
2008-02-28 Will Cohen <wcohen@redhat.com>
PR433780
* errno.stp (returnstr): Handle unified i386/x86_64 reg names.
-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; |