diff options
author | Randolph Chung <tausq@debian.org> | 2004-12-08 06:12:40 +0000 |
---|---|---|
committer | Randolph Chung <tausq@debian.org> | 2004-12-08 06:12:40 +0000 |
commit | 254ce0a11f382cf2dd627a6e5b32f6bad50abc96 (patch) | |
tree | 20f4a9e29d6327430fa76eacca3c376a6d5ef2d9 /gdb/hppa-tdep.c | |
parent | e1aac25bcf931ef69b793b4cdfe24f1b445b6385 (diff) | |
download | gdb-254ce0a11f382cf2dd627a6e5b32f6bad50abc96.zip gdb-254ce0a11f382cf2dd627a6e5b32f6bad50abc96.tar.gz gdb-254ce0a11f382cf2dd627a6e5b32f6bad50abc96.tar.bz2 |
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.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r-- | gdb/hppa-tdep.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 6be4ad5..b04b3c6 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -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; |