diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-02-28 17:35:01 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-02-28 17:35:01 +0000 |
commit | 35f196d907ec76a78167173efb1cdeedfcac93bf (patch) | |
tree | 53b4f75476a9e3e25e97ae02957e0784fbcba390 /gdb/frame.h | |
parent | 664e3ee9c3e66c691f0c064f93d8e0a52b31609d (diff) | |
download | gdb-35f196d907ec76a78167173efb1cdeedfcac93bf.zip gdb-35f196d907ec76a78167173efb1cdeedfcac93bf.tar.gz gdb-35f196d907ec76a78167173efb1cdeedfcac93bf.tar.bz2 |
* frame.c (frame_pop, frame_observer_target_changed): Call
reinit_frame_cache.
(flush_cached_frames): Rename to reinit_frame_cache and delete
old implementation.
* frame.h (flush_cached_frames): Delete prototype and update comment.
* bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
reinit_frame_cache instead of flush_cached_frames. Do not call
select_frame after reinit_frame_cache.
* corelow.c (core_open): Likewise.
* gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
* infrun.c (prepare_to_proceed, context_switch)
(handle_inferior_event): Likewise.
* linux-fork.c (fork_load_infrun_state): Likewise.
* ocd.c (ocd_start_remote): Likewise.
* remote-e7000.c (e7000_start_remote): Likewise.
* remote-mips.c (device): Likewise.
* thread.c (switch_to_thread): Likewise.
* tracepoint.c (finish_tfind_command): Likewise.
* gdbarch.c: Regenerated.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r-- | gdb/frame.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/gdb/frame.h b/gdb/frame.h index 941ee73..5181855 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -225,17 +225,10 @@ extern struct frame_info *get_current_frame (void); /* Invalidates the frame cache (this function should have been called invalidate_cached_frames). - FIXME: cagney/2002-11-28: The only difference between - flush_cached_frames() and reinit_frame_cache() is that the latter - explicitly sets the selected frame back to the current frame -- there - isn't any real difference (except that one delays the selection of - a new frame). Code can instead simply rely on get_selected_frame() - to reinit the selected frame as needed. As for invalidating the - cache, there should be two methods: one that reverts the thread's - selected frame back to current frame (for when the inferior - resumes) and one that does not (for when the user modifies the - target invalidating the frame cache). */ -extern void flush_cached_frames (void); + FIXME: cagney/2002-11-28: There should be two methods: one that + reverts the thread's selected frame back to current frame (for when + the inferior resumes) and one that does not (for when the user + modifies the target invalidating the frame cache). */ extern void reinit_frame_cache (void); /* On demand, create the selected frame and then return it. If the |