* cris-tdep.c (cris_stopped_data_address): Read register values
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 15 Jun 2007 22:27:53 +0000 (22:27 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 15 Jun 2007 22:27:53 +0000 (22:27 +0000)
from current frame instead of calling read_register.
* frv-tdep.c (frv_stopped_data_address): Likewise.

gdb/ChangeLog
gdb/cris-tdep.c
gdb/frv-tdep.c

index 766e969299279f1a269584ba63b2dc317d06dadd..6860ae9a02d27aa0bda25f8949f03b4aebf9f720 100644 (file)
@@ -1,9 +1,14 @@
+2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * 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.
+
 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
        instead of write_register (PC_REGNUM, ...).
 
-
 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
index 7ef468c11d773a03aa365ad128767013be907570..8b8602832537460c0683947ea82664d13310f74d 100644 (file)
@@ -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;
 }
 
index e21b3ecf7dfc49e74e57d52ecad559aef43d729e..948736f7051a9376f14f61a1beecce21fb1da7a0 100644 (file)
@@ -1291,13 +1291,14 @@ frv_check_watch_resources (int type, int cnt, int ot)
 int
 frv_stopped_data_address (CORE_ADDR *addr_p)
 {
+  struct frame_info *frame = get_current_frame ();
   CORE_ADDR brr, dbar0, dbar1, dbar2, dbar3;
 
-  brr = read_register (brr_regnum);
-  dbar0 = read_register (dbar0_regnum);
-  dbar1 = read_register (dbar1_regnum);
-  dbar2 = read_register (dbar2_regnum);
-  dbar3 = read_register (dbar3_regnum);
+  brr = get_frame_register_unsigned (frame, brr_regnum);
+  dbar0 = get_frame_register_unsigned (frame, dbar0_regnum);
+  dbar1 = get_frame_register_unsigned (frame, dbar1_regnum);
+  dbar2 = get_frame_register_unsigned (frame, dbar2_regnum);
+  dbar3 = get_frame_register_unsigned (frame, dbar3_regnum);
 
   if (brr & (1<<11))
     *addr_p = dbar0;