aboutsummaryrefslogtreecommitdiff
path: root/gdb/f-valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-09-26 19:05:09 +0000
committerTom Tromey <tromey@redhat.com>2012-09-26 19:05:09 +0000
commit965f07a88d697b5361258b1e771c616f54678461 (patch)
treeb2596737526c2897cfa6fcc5ef602d0032b9e67c /gdb/f-valprint.c
parent6f380991ba8ad44acd591d590a8dd974a0c2d561 (diff)
downloadgdb-965f07a88d697b5361258b1e771c616f54678461.zip
gdb-965f07a88d697b5361258b1e771c616f54678461.tar.gz
gdb-965f07a88d697b5361258b1e771c616f54678461.tar.bz2
2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
Tom Tromey <tromey@redhat.com> * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node, allocate_saved_f77_common_node, allocate_common_entry_node, tail_common_list, current_common, saved_bf_list, saved_bf_list_end, current_head_bf_list, tmp_bf_ptr, add_common_block, add_common_entry, find_first_common_named, patch_common_entries, patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list, global_remote_debug, get_bf_for_fcn, saved_function_list, saved_function_list_end, clear_function_list, struct saved_fcn, struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR, SAVED_BF, SAVED_BF_PTR): Remove. * f-lang.h (tail_common_list, current_common, UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING, BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77, DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name, real_main_c_value): Remove. * f-valprint.c (there_is_a_visible_common_named): Remove.
Diffstat (limited to 'gdb/f-valprint.c')
-rw-r--r--gdb/f-valprint.c65
1 files changed, 0 insertions, 65 deletions
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c
index 4359f6f..4f165ce 100644
--- a/gdb/f-valprint.c
+++ b/gdb/f-valprint.c
@@ -35,10 +35,6 @@
#include "command.h"
#include "block.h"
-#if 0
-static int there_is_a_visible_common_named (char *);
-#endif
-
extern void _initialize_f_valprint (void);
static void info_common_command (char *, int);
static void list_all_visible_commons (const char *);
@@ -537,67 +533,6 @@ info_common_command (char *comname, int from_tty)
comname, funname);
}
-/* This function is used to determine whether there is a
- F77 common block visible at the current scope called 'comname'. */
-
-#if 0
-static int
-there_is_a_visible_common_named (char *comname)
-{
- SAVED_F77_COMMON_PTR the_common;
- struct frame_info *fi;
- char *funname = 0;
- struct symbol *func;
-
- if (comname == NULL)
- error (_("Cannot deal with NULL common name!"));
-
- fi = get_selected_frame (_("No frame selected"));
-
- /* The following is generally ripped off from stack.c's routine
- print_frame_info(). */
-
- func = find_pc_function (fi->pc);
- if (func)
- {
- /* In certain pathological cases, the symtabs give the wrong
- function (when we are in the first function in a file which
- is compiled without debugging symbols, the previous function
- is compiled with debugging symbols, and the "foo.o" symbol
- that is supposed to tell us where the file with debugging symbols
- ends has been truncated by ar because it is longer than 15
- characters).
-
- So look in the minimal symbol tables as well, and if it comes
- up with a larger address for the function use that instead.
- I don't think this can ever cause any problems; there shouldn't
- be any minimal symbols in the middle of a function.
- FIXME: (Not necessarily true. What about text labels?) */
-
- struct minimal_symbol *msymbol = lookup_minimal_symbol_by_pc (fi->pc);
-
- if (msymbol != NULL
- && (SYMBOL_VALUE_ADDRESS (msymbol)
- > BLOCK_START (SYMBOL_BLOCK_VALUE (func))))
- funname = SYMBOL_LINKAGE_NAME (msymbol);
- else
- funname = SYMBOL_LINKAGE_NAME (func);
- }
- else
- {
- struct minimal_symbol *msymbol =
- lookup_minimal_symbol_by_pc (fi->pc);
-
- if (msymbol != NULL)
- funname = SYMBOL_LINKAGE_NAME (msymbol);
- }
-
- the_common = find_common_for_function (comname, funname);
-
- return (the_common ? 1 : 0);
-}
-#endif
-
void
_initialize_f_valprint (void)
{