From b1027aa45879cf41913c12987b4c4db330c1e4d2 Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Sat, 28 Oct 1995 11:57:02 +0000 Subject: * symtab.h (enum address_class): Add LOC_UNRESOLVED for a location whose address has to be resolved via the minimal symbol table. * buildsym.c (finish_block), findvar.c (symbol_read_needs_frame, read_var_value), printcmd.c (address_info), symmisc.c (print_symbol, print_partial_symbol): Handle LOC_UNRESOLVED. * stabsread.c (scan_file_globals): Change unresolved LOC_STATIC symbols to LOC_UNRESOLVED. Remove rt_common_objfile lookup kludge, global common symbols are now handled by LOC_UNRESOLVED. (scan_file_globals_1): Move code back to scan_file_globals, delete. --- gdb/buildsym.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/buildsym.c') diff --git a/gdb/buildsym.c b/gdb/buildsym.c index fab3a37f6c..c9c30b0199 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -260,6 +260,7 @@ finish_block (symbol, listhead, old_blocks, start, end, objfile) case LOC_LOCAL_ARG: case LOC_BASEREG: case LOC_BASEREG_ARG: + case LOC_UNRESOLVED: case LOC_OPTIMIZED_OUT: default: break; @@ -295,6 +296,7 @@ finish_block (symbol, listhead, old_blocks, start, end, objfile) case LOC_LOCAL_ARG: case LOC_BASEREG: case LOC_BASEREG_ARG: + case LOC_UNRESOLVED: case LOC_OPTIMIZED_OUT: default: break; -- cgit v1.2.1