From 9d49bdc28ad672f6e23e9f33759f73968d6885ff Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 5 Feb 2009 17:28:21 +0000 Subject: * frame.c (has_stack_frames): Make public. (get_prev_frame): Don't allow a NULL this_frame anymore. * frame.h (has_stack_frames): Declare. * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL to get_prev_frame, instead start at get_current_frame. (varobj_create): Check has_stack_frames before getting any frame; eliminate one usage of deprecated_safe_get_selected_frame. --- gdb/frame.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/frame.h') diff --git a/gdb/frame.h b/gdb/frame.h index b25ab9c..224aec9 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -204,6 +204,11 @@ enum frame_type error. */ extern struct frame_info *get_current_frame (void); +/* Does the current target interface have enough state to be able to + query the current inferior for frame info, and is the inferior in a + state where that is possible? */ +extern int has_stack_frames (void); + /* Invalidates the frame cache (this function should have been called invalidate_cached_frames). -- cgit v1.1