diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-11-02 14:47:28 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-11-02 14:47:28 +0000 |
commit | 09a7aba80a6e7a4a6e6cce7f877bcecf7a146919 (patch) | |
tree | c950170d262ad8f374d69d22da57893ca483c447 /gdb/dummy-frame.c | |
parent | d93859e2e8495bc510108127f76a5cbca589ad81 (diff) | |
download | gdb-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/dummy-frame.c')
-rw-r--r-- | gdb/dummy-frame.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/dummy-frame.c b/gdb/dummy-frame.c index bb1f0b4..95847c6 100644 --- a/gdb/dummy-frame.c +++ b/gdb/dummy-frame.c @@ -87,6 +87,7 @@ void dummy_frame_push (struct regcache *caller_regcache, const struct frame_id *dummy_id) { + struct gdbarch *gdbarch = get_regcache_arch (caller_regcache); struct dummy_frame *dummy_frame; /* Check to see if there are stale dummy frames, perhaps left over @@ -95,7 +96,7 @@ dummy_frame_push (struct regcache *caller_regcache, dummy_frame = dummy_frame_stack; while (dummy_frame) /* FIXME: cagney/2004-08-02: Should just test IDs. */ - if (frame_id_inner (dummy_frame->id, (*dummy_id))) + if (frame_id_inner (gdbarch, dummy_frame->id, (*dummy_id))) /* Stale -- destroy! */ { dummy_frame_stack = dummy_frame->next; |