1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-23 12:03:41 +01:00

(remote_install_cursor): Fix off-by-one error.

2004/10/25 05:21:51-07:00 hp.com!davidm
(unw_resume): Print IP along with cursor-address.

(Logical change 1.290)
This commit is contained in:
mostang.com!davidm 2005-05-03 09:13:17 +00:00
parent 6ef1640a5f
commit caa61dfec1

View file

@ -240,7 +240,7 @@ remote_install_cursor (struct cursor *c)
Debug (8, "copying out cursor state\n"); Debug (8, "copying out cursor state\n");
for (reg = 0; reg < UNW_REG_LAST; ++reg) for (reg = 0; reg <= UNW_REG_LAST; ++reg)
{ {
if (unw_is_fpreg (reg)) if (unw_is_fpreg (reg))
{ {
@ -264,7 +264,7 @@ unw_resume (unw_cursor_t *cursor)
{ {
struct cursor *c = (struct cursor *) cursor; struct cursor *c = (struct cursor *) cursor;
Debug (1, "(cursor=%p)\n", c); Debug (1, "(cursor=%p, ip=0x%016lx)\n", c, (unsigned long) c->ip);
#ifdef UNW_LOCAL_ONLY #ifdef UNW_LOCAL_ONLY
return local_resume (c->as, cursor, c->as_arg); return local_resume (c->as, cursor, c->as_arg);