aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-10-30 21:44:20 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-10-30 21:44:20 +0000
commitfbff0d8f0b5387fc8496e336372c4a19166ba390 (patch)
treed48def15d03408a56a47efb7e89c84403805115e /gdb
parente1e01acdc81f9ddcfda2d4bc64d45468eb59581d (diff)
downloadgdb-fbff0d8f0b5387fc8496e336372c4a19166ba390.zip
gdb-fbff0d8f0b5387fc8496e336372c4a19166ba390.tar.gz
gdb-fbff0d8f0b5387fc8496e336372c4a19166ba390.tar.bz2
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use get_frame_arch to get at the current architecture by frame_info.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/avr-tdep.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bae6abe..57d986f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2007-10-30 Markus Deuling <deuling@de.ibm.com>
+ * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
+ get_frame_arch to get at the current architecture by frame_info.
+
+2007-10-30 Markus Deuling <deuling@de.ibm.com>
+
* arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
2007-10-30 Markus Deuling <deuling@de.ibm.com>
diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c
index a19e927..db2fd0f 100644
--- a/gdb/avr-tdep.c
+++ b/gdb/avr-tdep.c
@@ -928,7 +928,7 @@ avr_frame_unwind_cache (struct frame_info *next_frame,
/* Adjust all the saved registers so that they contain addresses and not
offsets. */
- for (i = 0; i < gdbarch_num_regs (current_gdbarch) - 1; i++)
+ for (i = 0; i < gdbarch_num_regs (get_frame_arch (next_frame)) - 1; i++)
if (info->saved_regs[i].addr)
{
info->saved_regs[i].addr = (info->prev_sp - info->saved_regs[i].addr);
@@ -1046,9 +1046,9 @@ avr_frame_prev_register (struct frame_info *next_frame,
buf[1] = tmp;
pc = (extract_unsigned_integer (buf, 2) * 2);
- store_unsigned_integer (bufferp,
- register_size (current_gdbarch, regnum),
- pc);
+ store_unsigned_integer
+ (bufferp, register_size (get_frame_arch (next_frame), regnum),
+ pc);
}
}
}