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/findvar.c | |
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/findvar.c')
-rw-r--r-- | gdb/findvar.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c index 7b6191c..a64ddfb 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -404,8 +404,11 @@ read_var_value (register struct symbol *var, struct frame_info *frame) len = TYPE_LENGTH (type); + + /* FIXME drow/2003-09-06: this call to the selected frame should be + pushed upwards to the callers. */ if (frame == NULL) - frame = deprecated_selected_frame; + frame = deprecated_safe_get_selected_frame (); switch (SYMBOL_CLASS (var)) { |