]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
2003-01-10 Andrew Cagney <ac131313@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Fri, 10 Jan 2003 15:22:39 +0000 (15:22 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 10 Jan 2003 15:22:39 +0000 (15:22 +0000)
commit38c4f67e850d9f0e4ce517beb1d9fe18ffeca1d5
tree70a9b761f4dd631ae59a7a23c74b1e9589f5fb06
parent812e900cfcaad5c1a17d6728e204cbf34d4eb557
2003-01-10  Andrew Cagney  <ac131313@redhat.com>

* sentinel-frame.c (sentinel_frame_register_unwind): Correctly set
LVALP and ADDRP.

* frame.c: Include "ui-out.h".

* frame.c (frame_type_from_pc): New function.
(create_new_frame): Use.
(set_unwind_by_pc): Drop unused frame parameter.
(deprecated_get_prev_frame): Rename old get_prev_frame.
(get_prev_frame): Rewrite.  Unwind the PC first.  Use
frame_id_unwind.

* dummy-frame.h (dummy_frame_id_unwind): Update.
(dummy_frame_pc_unwind): Update.
(dummy_frame_register_unwind): Update.
* dummy-frame.c: Update.

* frame.c (create_new_frame): Set next to a sentinal frame.
(create_sentinel_frame): New function.
(frame_id_unwind): Update id_unwind call.
(frame_saved_regs_register_unwind): Update cache parameter.
(frame_saved_regs_pc_unwind): Update cache parameter.
(frame_saved_regs_id_unwind): Update cache and id parameters.

* frame.h (frame_id_unwind_ftype): Return the frame ID using a
reference parameter.
(struct frame_unwind_cache): Declare.
(frame_id_unwind_ftype, frame_pc_unwind_ftype,
frame_register_unwind_ftype): Change the unwind cache_type to
`struct frame_unwind_cache'.
(struct frame_info): Change type of unwind_cache to `struct
frame_unwind_cache'.

* frame.c (get_next_frame): Don't go beyond the inner-most frame.
(frame_register_unwind): Assume that there is always a next frame.
(frame_register): Ditto.
(generic_unwind_get_saved_register): Ditto.

* frame.h (frame_type): Add SENTINEL_FRAME.

* Makefile.in (frame.o): Update dependencies.

* frame.h (FRAME_OBSTACK_ZALLOC): Define.

* Makefile.in (sentinel-frame.o): Specify dependencies.
(sentinel_frame_h): Define.
(SFILES): Add sentinel-frame.c.
(COMMON_OBS): Add sentinel-frame.o.
* sentinel-frame.c: New file.
* sentinel-frame.h: New file.
gdb/ChangeLog
gdb/Makefile.in
gdb/dummy-frame.c
gdb/dummy-frame.h
gdb/frame.c
gdb/frame.h