diff options
Diffstat (limited to 'gdb/f-valprint.c')
-rw-r--r-- | gdb/f-valprint.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c index b83597cf3b0..526c85c9407 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -71,7 +71,7 @@ f77_get_dynamic_lowerbound (struct type *type, int *lower_bound) switch (TYPE_ARRAY_LOWER_BOUND_TYPE (type)) { case BOUND_BY_VALUE_ON_STACK: - current_frame_addr = get_frame_base (deprecated_selected_frame); + current_frame_addr = get_frame_base (get_selected_frame (NULL)); if (current_frame_addr > 0) { *lower_bound = @@ -95,7 +95,7 @@ f77_get_dynamic_lowerbound (struct type *type, int *lower_bound) break; case BOUND_BY_REF_ON_STACK: - current_frame_addr = get_frame_base (deprecated_selected_frame); + current_frame_addr = get_frame_base (get_selected_frame (NULL)); if (current_frame_addr > 0) { ptr_to_lower_bound = @@ -129,7 +129,7 @@ f77_get_dynamic_upperbound (struct type *type, int *upper_bound) switch (TYPE_ARRAY_UPPER_BOUND_TYPE (type)) { case BOUND_BY_VALUE_ON_STACK: - current_frame_addr = get_frame_base (deprecated_selected_frame); + current_frame_addr = get_frame_base (get_selected_frame (NULL)); if (current_frame_addr > 0) { *upper_bound = @@ -158,7 +158,7 @@ f77_get_dynamic_upperbound (struct type *type, int *upper_bound) break; case BOUND_BY_REF_ON_STACK: - current_frame_addr = get_frame_base (deprecated_selected_frame); + current_frame_addr = get_frame_base (get_selected_frame (NULL)); if (current_frame_addr > 0) { ptr_to_upper_bound = @@ -643,10 +643,7 @@ info_common_command (char *comname, int from_tty) first make sure that it is visible and if so, let us display its contents */ - fi = deprecated_selected_frame; - - if (fi == NULL) - error (_("No frame selected")); + fi = get_selected_frame (_("No frame selected")); /* The following is generally ripped off from stack.c's routine print_frame_info() */ @@ -735,10 +732,7 @@ there_is_a_visible_common_named (char *comname) if (comname == NULL) error (_("Cannot deal with NULL common name!")); - fi = deprecated_selected_frame; - - if (fi == NULL) - error (_("No frame selected")); + fi = get_selected_frame (_("No frame selected")); /* The following is generally ripped off from stack.c's routine print_frame_info() */ |