summaryrefslogtreecommitdiff
path: root/gdb/cris-tdep.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-06-15 22:27:53 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-06-15 22:27:53 +0000
commitc0d8018219bd17150e4648e58327739f6e9240c0 (patch)
tree849c6621a87e033645ac66222942fbf7b815a7fb /gdb/cris-tdep.c
parent1efc802b9ac652b8b16076d138beda79f6ad1777 (diff)
downloadgdb-c0d8018219bd17150e4648e58327739f6e9240c0.tar.gz
* cris-tdep.c (cris_stopped_data_address): Read register values
from current frame instead of calling read_register. * frv-tdep.c (frv_stopped_data_address): Likewise.
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;
}