diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-04-04 21:04:33 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-04-04 21:04:33 +0000 |
commit | 11889732f8bf4a0c69606696a154262eb1f82a8e (patch) | |
tree | 5f53ccc66a6f39c2a26aacbef74ea32cc28ff592 /gdb/dummy-frame.c | |
parent | 8dfb4cf0914918a83792055b7a218c23c0934d76 (diff) | |
download | gdb-11889732f8bf4a0c69606696a154262eb1f82a8e.zip gdb-11889732f8bf4a0c69606696a154262eb1f82a8e.tar.gz gdb-11889732f8bf4a0c69606696a154262eb1f82a8e.tar.bz2 |
2003-04-04 Andrew Cagney <cagney@redhat.com>
* x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
* dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
* d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
get_frame_base.
(d10v_unwind_dummy_id): Use frame_id_build.
* frame.c (find_frame_sal): Use get_frame_pc.
(create_new_frame): Use deprecated_update_frame_pc_hack and
deprecated_update_frame_base_hack.
(create_sentinel_frame): Add comment about ->pc going away.
(get_prev_frame): Add comment about ->pc going away.
(legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
frame_id_build, deprecated_update_frame_pc_hack and
deprecated_update_frame_base_hack.
(select_frame): Use get_frame_pc.
(legacy_saved_regs_this_id): Use frame_id_build.
Diffstat (limited to 'gdb/dummy-frame.c')
-rw-r--r-- | gdb/dummy-frame.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/dummy-frame.c b/gdb/dummy-frame.c index f088405..4181735 100644 --- a/gdb/dummy-frame.c +++ b/gdb/dummy-frame.c @@ -374,8 +374,7 @@ dummy_frame_this_id (struct frame_info *next_frame, same sequence as is found a traditional unwinder. Once all architectures supply the unwind_dummy_id method, this code can go away. */ - (*this_id).base = read_fp (); - (*this_id).pc = read_pc (); + (*this_id) = frame_id_build (read_fp (), read_pc ()); } else if (legacy_frame_p (current_gdbarch) && get_prev_frame (next_frame)) @@ -384,8 +383,8 @@ dummy_frame_this_id (struct frame_info *next_frame, get_prev_frame code has already created THIS frame and linked it in to the frame chain (a pretty bold assumption), extract the ID from THIS base / pc. */ - (*this_id).base = get_frame_base (get_prev_frame (next_frame)); - (*this_id).pc = get_frame_pc (get_prev_frame (next_frame)); + (*this_id) = frame_id_build (get_frame_base (get_prev_frame (next_frame)), + get_frame_pc (get_prev_frame (next_frame))); } else { |