summaryrefslogtreecommitdiff
path: root/gdb/cris-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/cris-tdep.c')
-rw-r--r--gdb/cris-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index 7ef468c11d7..8b860283253 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -535,7 +535,7 @@ CORE_ADDR
cris_stopped_data_address (void)
{
CORE_ADDR eda;
- eda = read_register (EDA_REGNUM);
+ eda = get_frame_register_unsigned (get_current_frame (), EDA_REGNUM);
return eda;
}