diff options
author | Daniel Jacobowitz <drow@false.org> | 2003-09-08 18:56:03 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2003-09-08 18:56:03 +0000 |
commit | 7dd889867037abfa8f239f9f65f9606294e0be8d (patch) | |
tree | 26f82f5b8170f23254243c62fcc2c7e9df1a913e /gdb/frame.h | |
parent | a6fc177898b33d6eb3154e93ace5d24272a9eb70 (diff) | |
download | gdb-7dd889867037abfa8f239f9f65f9606294e0be8d.zip gdb-7dd889867037abfa8f239f9f65f9606294e0be8d.tar.gz gdb-7dd889867037abfa8f239f9f65f9606294e0be8d.tar.bz2 |
* frame.c (deprecated_safe_get_selected_frame): New function.
* frame.h (deprecated_safe_get_selected_frame): Add prototype.
* findvar.c (read_var_value): Call it.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r-- | gdb/frame.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/frame.h b/gdb/frame.h index 8851b3a..afbde74 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -639,6 +639,19 @@ extern void return_command (char *, int); extern struct frame_info *deprecated_selected_frame; +/* NOTE: drow/2003-09-06: + + This function is "a step sideways" for uses of deprecated_selected_frame. + They should be fixed as above, but meanwhile, we needed a solution for + cases where functions are called with a NULL frame meaning either "the + program is not running" or "use the selected frame". Lazy building of + deprecated_selected_frame confuses the situation, because now + deprecated_selected_frame can be NULL even when the inferior is running. + + This function calls get_selected_frame if the inferior should have a + frame, or returns NULL otherwise. */ + +extern struct frame_info *deprecated_safe_get_selected_frame (void); /* Create a frame using the specified BASE and PC. */ |