diff options
author | Pedro Alves <palves@redhat.com> | 2009-02-05 17:28:21 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-02-05 17:28:21 +0000 |
commit | 9d49bdc28ad672f6e23e9f33759f73968d6885ff (patch) | |
tree | 6bdaf0312e8701db011376578e7b6022e72231e4 /gdb/frame.h | |
parent | 12453b93bd8de559235835300eac68118c4ade70 (diff) | |
download | gdb-9d49bdc28ad672f6e23e9f33759f73968d6885ff.zip gdb-9d49bdc28ad672f6e23e9f33759f73968d6885ff.tar.gz gdb-9d49bdc28ad672f6e23e9f33759f73968d6885ff.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r-- | gdb/frame.h | 5 |
1 files changed, 5 insertions, 0 deletions
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). |