aboutsummaryrefslogtreecommitdiff
path: root/gdb/alpha-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/alpha-nat.c')
-rw-r--r--gdb/alpha-nat.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/alpha-nat.c b/gdb/alpha-nat.c
index 1a55ea9..f548359 100644
--- a/gdb/alpha-nat.c
+++ b/gdb/alpha-nat.c
@@ -101,6 +101,15 @@ fetch_osf_core_registers (struct regcache *regcache,
regcache_raw_supply (regcache, regno, NULL);
continue;
}
+
+ if (regno == ALPHA_ZERO_REGNUM)
+ {
+ const gdb_byte zero[8] = { 0 };
+
+ regcache_raw_supply (regcache, regno, zero);
+ continue;
+ }
+
addr = 8 * core_reg_mapping[regno];
if (addr < 0 || addr >= core_reg_size)
{