From 36a0275014ed7d918cb64db26220668d2034b4da Mon Sep 17 00:00:00 2001 From: "hp.com!davidm" Date: Fri, 20 May 2005 15:32:18 +0000 Subject: [PATCH] Allow write-access to UNW_IA64_BSP and UNW_REG_SP. (Logical change 1.303) --- src/ia64/Gregs.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ia64/Gregs.c b/src/ia64/Gregs.c index 91019ec1..f3e40753 100644 --- a/src/ia64/Gregs.c +++ b/src/ia64/Gregs.c @@ -371,14 +371,16 @@ tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp, case UNW_IA64_BSP: if (write) - return -UNW_EREADONLYREG; - *valp = c->bsp; + c->bsp = *valp; + else + *valp = c->bsp; return 0; case UNW_REG_SP: if (write) - return -UNW_EREADONLYREG; - *valp = c->sp; + c->sp = *valp; + else + *valp = c->sp; return 0; case UNW_REG_IP: