aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.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
commit09a7aba80a6e7a4a6e6cce7f877bcecf7a146919 (patch)
treec950170d262ad8f374d69d22da57893ca483c447 /gdb/infrun.c
parentd93859e2e8495bc510108127f76a5cbca589ad81 (diff)
downloadgdb-09a7aba80a6e7a4a6e6cce7f877bcecf7a146919.zip
gdb-09a7aba80a6e7a4a6e6cce7f877bcecf7a146919.tar.gz
gdb-09a7aba80a6e7a4a6e6cce7f877bcecf7a146919.tar.bz2
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/infrun.c')
-rw-r--r--gdb/infrun.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index f03a5f2..cf7aa02 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -2726,8 +2726,10 @@ process_event_stop_test:
function. Fortunately, those days are nearly upon us. */
#endif
{
- struct frame_id current_frame = get_frame_id (get_current_frame ());
- if (!(frame_id_inner (current_frame, step_frame_id)))
+ struct frame_info *frame = get_current_frame ();
+ struct frame_id current_frame = get_frame_id (frame);
+ if (!(frame_id_inner (get_frame_arch (frame), current_frame,
+ step_frame_id)))
step_frame_id = current_frame;
}