diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1995-01-07 15:30:58 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1995-01-07 15:30:58 +0000 |
commit | 02b40a193ee4627451f2c525671883ad94f17452 (patch) | |
tree | af34b2a2958c34c3cf9b43f16c845cdd3d1b0a41 /gdb/objfiles.h | |
parent | 4a4f9e3bf1f7f3d3b30311626cb04ed2518cf826 (diff) | |
download | gdb-02b40a193ee4627451f2c525671883ad94f17452.zip gdb-02b40a193ee4627451f2c525671883ad94f17452.tar.gz gdb-02b40a193ee4627451f2c525671883ad94f17452.tar.bz2 |
* dbxread.c (process_one_symbol): Handle N_FUN symbols
for Sun acc 3.0 under SunOS4.
Changes to improve handling of runtime common symbols
under SunOS4.
* minsyms.c (get_symbol_leading_char): New routine to determine
the leading symbol character for an objfile.
(prim_record_minimal_symbol_and_info, install_minimal_symbols):
Use it.
* objfiles.h (rt_common_objfile): New global, points to objfile
containing the runtime common minimal symbols.
* objfiles.c (free_objfile): Mark rt_common_objfile as
unallocated before freeing it.
* solib.c (allocate_rt_common_objfile): New routine to allocate
an objfile for the runtime common minimal symbols.
(solib_add_common_symbols): Allocate an objfile for the runtime
common symbols if necessary and put common symbols into it.
Clean up code and comments.
(solib_add, special_symbol_handling): Cleanup comments regarding
runtime common symbols.
* stabsread.c (scan_file_globals_1): New routine, contains
old scan_file_globals code. Checks if there are any unresolved
global symbols before starting the expensive minimal symbol table
search.
(scan_file_globals): Now calls scan_file_globals_1 for the passed
objfile and eventually for the runtime common objfile. Complains
about any unresolved global symbols and removes them from the
global symbol chain to avoid dangling pointers into the symbol
table if the symbol table is reread.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 0a69f20..a4a1404 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -1,5 +1,5 @@ /* Definitions for symbol file management in GDB. - Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. + Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc. This file is part of GDB. @@ -208,8 +208,8 @@ struct objfile struct partial_symtab *free_psymtabs; - /* The object file's BFD. Can be null, in which case bfd_open (name) and - put the result here. */ + /* The object file's BFD. Can be null if the objfile contains only + minimal symbols, e.g. the run time common symbols for SunOS4. */ bfd *obfd; @@ -356,6 +356,11 @@ struct objfile extern struct objfile *symfile_objfile; +/* The object file that contains the runtime common minimal symbols + for SunOS4. Note that this objfile has no associated BFD. */ + +extern struct objfile *rt_common_objfile; + /* When we need to allocate a new type, we need to know which type_obstack to allocate the type on, since there is one for each objfile. The places where types are allocated are deeply buried in function call hierarchies |