libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libunwind] bug in ia64_put ?


From: Mark Young
Subject: [libunwind] bug in ia64_put ?
Date: Tue, 12 Nov 2002 14:27:08 -0800
User-agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.1) Gecko/20020920 Netscape/7.0

I suspect a bug distinguishing register from memory locations in the !UNW_LOCAL_ONLY version of ia64_put(). Here's a patch:


===== src/ia64/unwind_i.h 1.10 vs edited =====
--- 1.10/src/ia64/unwind_i.h    Mon Nov 11 16:43:55 2002
+++ edited/src/ia64/unwind_i.h    Mon Nov 11 23:38:55 2002
@@ -315,8 +315,8 @@
      return ia64_putfp (c, loc, tmp);
    }

-  if (loc & 1)
-    return (*c->acc.access_reg)(loc >> 1, &val, 1, c->acc.arg);
+  if (IA64_IS_REG_LOC (loc))
+    return (*c->acc.access_reg)(IA64_GET_LOC (loc), &val, 1, c->acc.arg);
  else
    return (*c->acc.access_mem)(loc, &val, 1, c->acc.arg);
}

--Mark




reply via email to

[Prev in Thread] Current Thread [Next in Thread]