2004-12-07 Randolph Chung <tausq@debian.org>
authorRandolph Chung <tausq@debian.org>
Wed, 8 Dec 2004 06:12:40 +0000 (06:12 +0000)
committerRandolph Chung <tausq@debian.org>
Wed, 8 Dec 2004 06:12:40 +0000 (06:12 +0000)
* hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
register for both 32- and 64-bit targets.

gdb/ChangeLog
gdb/hppa-tdep.c

index d422af496e3d20f94bc690dc10478180e7c96e34..e1649e35cd31520d20a80556f9c8b1ad62b79642 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-07  Randolph Chung  <tausq@debian.org>
+
+       * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
+       register for both 32- and 64-bit targets.
+
 2004-12-07  Randolph Chung  <tausq@debian.org>
 
        * frame.c (get_prev_frame): Don't terminate unwinding at main if we
index 6be4ad52d3946ae9f46ec3bd55a18fa65fbbb119..b04b3c6eb3b339af61f3abf7475f09bc5288a88f 100644 (file)
@@ -2459,7 +2459,10 @@ hppa_frame_prev_register_helper (struct frame_info *next_frame,
   if (regnum == HPPA_FLAGS_REGNUM)
     {
       if (valuep)
-       store_unsigned_integer (valuep, 4, 0);
+       store_unsigned_integer (valuep, 
+                               register_size (get_frame_arch (next_frame), 
+                                              regnum), 
+                               0);
 
       /* It's a computed value.  */
       *optimizedp = 0;