summaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-11-02 14:47:28 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-11-02 14:47:28 +0000
commit5be3679bc307e8f513c5820abfbdc46e5f15da9a (patch)
tree28f40e6f9ebff4e6c98ef00f425264d3661e2867 /gdb/stack.c
parent6ed2f5ec3dbe5b615d4aa8a38a647596fd9373b8 (diff)
downloadgdb-5be3679bc307e8f513c5820abfbdc46e5f15da9a.tar.gz
2007-11-02 Markus Deuling <deuling@de.ibm.com>
* frame.c (frame_id_inner): Add gdbarch parameter. Replace current_gdbarch by gdbarch. (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the current architecture by frame_info. * frame.h (frame_id_inner): Add gdbarch parameter. * stack.c (return_command): Use get_frame_arch to get at the current architecture by frame_info. Update call of frame_id_inner. * infrun.c (handle_inferior_event): Likewise. * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the current architecture by regcache. Update call of frame_id_inner.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index d311df3dc8d..237ded107d1 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -1824,7 +1824,9 @@ If you continue, the return value that you specified will be ignored.\n";
struct frame_id selected_id = get_frame_id (get_selected_frame (NULL));
while (!frame_id_eq (selected_id, get_frame_id (get_current_frame ())))
{
- if (frame_id_inner (selected_id, get_frame_id (get_current_frame ())))
+ struct frame_info *frame = get_current_frame ();
+ if (frame_id_inner (get_frame_arch (frame), selected_id,
+ get_frame_id (frame)))
/* Caught in the safety net, oops! We've gone way past the
selected frame. */
error (_("Problem while popping stack frames (corrupt stack?)"));