]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
2003-04-03 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Thu, 3 Apr 2003 17:01:49 +0000 (17:01 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 3 Apr 2003 17:01:49 +0000 (17:01 +0000)
commitde3375b747d17f0e3f4b27cd63a8e5d9f623bf4b
tree81e5ef39a851ffc36bf278794917b7b6688a839c
parent56119ffba54ea99aed55aed353725346558b2696
2003-04-03  Andrew Cagney  <cagney@redhat.com>

* frame.c (frame_id_eq): Update.  Compare function addresses.
(get_frame_func): New function.
(frame_func_unwind): New function.
(legacy_get_prev_frame): Move linking of prev to next to the start
of the function.
(frame_id_p): Update.
(get_frame_id): Return the frame's "id".  Do not set "frame".
(frame_id_build): Update.
(frame_id_inner): Update.
(create_sentinel_frame): Do not set the "pc".
(select_frame): Use get_frame_pc.
(legacy_saved_regs_this_id): Use frame_id_build.
(create_new_frame): Set the frame's ID.  Store the PC in the
sentinel frame's PC unwind cache.
(legacy_get_prev_frame): Do not set "pc" or "frame".  Instead use
frame_pc_unwind, frame_id_build, deprecated_update_frame_pc_hack,
and deprecated_update_frame_base_hack.
(get_prev_frame): Do not set "pc" or "frame", instead use
frame_pc_unwind.
(get_frame_pc): Use frame_pc_unwind.
(find_frame_sal): Use get_frame_pc.
(get_frame_base): Return the frame ID's stack address.
(deprecated_update_frame_base_hack): Set the frame ID's stack
address.
(frame_id_eq, frame_id_p, frame_id_inner, get_frame_id): Add debug
print statements.

* d10v-tdep.c (d10v_frame_unwind_cache): Use frame_func_unwind.
(d10v_frame_this_id): Get the frame's function.
(d10v_frame_this_id): Use frame_id_eq.
(d10v_unwind_dummy_id): Use frame_id_build.

* stack.c (print_frame_info): Use get_frame_pc.

* dummy-frame.c (dummy_frame_this_id): Use frame_id_build.  Update
parameter to find_dummy_frame.

* breakpoint.c (print_one_breakpoint): Update.

* frame.h (struct frame_id): Rename "base" to "stack_addr",
replace "pc" with "func_addr".
(frame_id_build): Update parameter names and comment.
(struct frame_info): Delete "frame" and "pc" fields.
(frame_func_unwind): Declare.
(get_frame_func): Declare.
(struct frame_info): Add field "func".
gdb/ChangeLog
gdb/breakpoint.c
gdb/d10v-tdep.c
gdb/dummy-frame.c
gdb/frame.c
gdb/frame.h
gdb/stack.c