aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-10-29 20:23:17 +0000
committerAndrew Cagney <cagney@redhat.com>2004-10-29 20:23:17 +0000
commitb04f3ab41782ec089e698e372f567bde75831438 (patch)
tree0a3b97a891dba140098c58f5313ca4b75fcbdb47 /gdb/frame.h
parent00b25ff323929eaa3b7ddaea20985a4174cf6381 (diff)
downloadgdb-b04f3ab41782ec089e698e372f567bde75831438.zip
gdb-b04f3ab41782ec089e698e372f567bde75831438.tar.gz
gdb-b04f3ab41782ec089e698e372f567bde75831438.tar.bz2
2004-10-29 Andrew Cagney <cagney@gnu.org>
* frame.h (get_selected_frame): Add message parameter. * frame.c (get_selected_frame): Add and use message parameter. * stack.c (current_frame_command, return_command, locals_info) (catch_info, args_info, up_silently_base, down_silently_base): Use get_selected_frame with an explicit message. * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update. * remote-rdp.c, remote-mips.c, remote-e7000.c: Update. * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update. * infrun.c, inflow.c, infcmd.c, frame.c: Update. * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update. * breakpoint.c: Update.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r--gdb/frame.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/frame.h b/gdb/frame.h
index f4b1089..d49192f 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -219,13 +219,15 @@ extern void flush_cached_frames (void);
extern void reinit_frame_cache (void);
/* On demand, create the selected frame and then return it. If the
- selected frame can not be created, this function throws an error. */
+ selected frame can not be created, this function prints then throws
+ an error. When MESSAGE is non-NULL, use it for the error message,
+ otherwize use a generic error message. */
/* FIXME: cagney/2002-11-28: At present, when there is no selected
frame, this function always returns the current (inner most) frame.
It should instead, when a thread has previously had its frame
selected (but not resumed) and the frame cache invalidated, find
and then return that thread's previously selected frame. */
-extern struct frame_info *get_selected_frame (void);
+extern struct frame_info *get_selected_frame (const char *message);
/* Select a specific frame. NULL, apparently implies re-select the
inner most frame. */