With BETA 5 of libuwx some of the application registers are renamed

from UWX_REG_MUMBLE to UWX_REG_AR_MUMBLE. Compatibility defines are
present in libuwx. Change the names here so that we don't depend on
compatibility defines.

Note that there's now an UWX_REG_PFS and an UWX_REG_AR_PFS and the
former is not a compatibility define for the latter AFAICT. Change
to UWX_REG_AR_PFS as that seems to be the one we need to handle.
This commit is contained in:
Marcel Moolenaar 2003-10-09 03:11:37 +00:00
parent 734fc6cafd
commit c3f4e4fbb5

View File

@ -174,13 +174,13 @@ unw_cb_copyin(int req, char *to, uint64_t from, int len, intptr_t tok)
*((uint64_t*)to) = *((uint64_t*)from);
return (8);
case UWX_COPYIN_REG:
if (from == UWX_REG_PFS)
if (from == UWX_REG_AR_PFS)
from = rs->frame->tf_special.pfs;
else if (from == UWX_REG_PREDS)
from = rs->frame->tf_special.pr;
else if (from == UWX_REG_RNAT)
else if (from == UWX_REG_AR_RNAT)
from = rs->frame->tf_special.rnat;
else if (from == UWX_REG_UNAT)
else if (from == UWX_REG_AR_UNAT)
from = rs->frame->tf_special.unat;
else if (from >= UWX_REG_GR(0) && from <= UWX_REG_GR(127)) {
reg = from - UWX_REG_GR(0);