diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-04-03 04:47:27 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-04-03 04:47:27 +0000 |
commit | a960f24961375851112ce6c45c8f7ae9a505bf6c (patch) | |
tree | 2d6a9427494993cc0ba947e581e42c5d9ff0faa4 /gdb | |
parent | afbfc876f1cdcb02c330d0b8e7bad23d2c28a989 (diff) | |
download | gdb-a960f24961375851112ce6c45c8f7ae9a505bf6c.zip gdb-a960f24961375851112ce6c45c8f7ae9a505bf6c.tar.gz gdb-a960f24961375851112ce6c45c8f7ae9a505bf6c.tar.bz2 |
Delete add_minsym_to_demangled_hash_table from symtabs.h. Static function.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/minsyms.c | 3 | ||||
-rw-r--r-- | gdb/symtab.h | 11 |
3 files changed, 13 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e131fd3..2fe8056 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Mon Apr 3 14:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com> + + * symtab.h (add_minsym_to_demangled_hash_table): Revert 2000-03-29 + Daniel Berlin <dan@cgsoftware.com>. Function was static. + * minsyms.c (add_minsym_to_demangled_hash_table): Add prototype. + Mon Apr 3 14:10:37 2000 Andrew Cagney <cagney@b1.cygnus.com> * gdb-events.h, gdb-events.c, gdb-events.sh: Re-indent. diff --git a/gdb/minsyms.c b/gdb/minsyms.c index 23e7988..b8339f2 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -82,6 +82,9 @@ static int compact_minimal_symbols PARAMS ((struct minimal_symbol *, int, struct objfile *)); +static void add_minsym_to_demangled_hash_table (struct minimal_symbol *sym, + struct minimal_symbol **table); + /* Compute a hash code based using the same criteria as `strcmp_iw'. */ unsigned int diff --git a/gdb/symtab.h b/gdb/symtab.h index 7aff532..dffb26a 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -311,7 +311,7 @@ struct minimal_symbol so it doesn't have to rederive the info constantly (over a serial line). It is initialized to zero and stays that way until target-dependent code sets it. Storage for any data pointed to by this field should be allo- - cated on the symbol_obstack for the associated objfile. + cated on the symbol_obstack for the associated objfile. The type would be "void *" except for reasons of compatibility with older compilers. This field is optional. @@ -738,7 +738,7 @@ struct symbol symbols whose types we have not parsed yet. For functions, it also contains their memory address, so we can find them from a PC value. Each partial_symbol sits in a partial_symtab, all of which are chained - on a partial symtab list and which points to the corresponding + on a partial symtab list and which points to the corresponding normal symtab once the partial_symtab has been referenced. */ struct partial_symbol @@ -837,7 +837,7 @@ struct section_offsets (sizeof (struct section_offsets) \ + sizeof (((struct section_offsets *) 0)->offsets) * (SECT_OFF_MAX-1)) -/* Each source file or header is represented by a struct symtab. +/* Each source file or header is represented by a struct symtab. These objects are chained through the `next' field. */ struct symtab @@ -1032,7 +1032,7 @@ struct partial_symtab /* The virtual function table is now an array of structures which have the - form { int16 offset, delta; void *pfn; }. + form { int16 offset, delta; void *pfn; }. In normal virtual function tables, OFFSET is unused. DELTA is the amount which is added to the apparent object's base @@ -1240,9 +1240,6 @@ extern unsigned int msymbol_hash PARAMS ((const char *)); extern void add_minsym_to_hash_table (struct minimal_symbol *sym, struct minimal_symbol **table); -extern void -add_minsym_to_demangled_hash_table (struct minimal_symbol *sym, - struct minimal_symbol **table); extern struct minimal_symbol * lookup_minimal_symbol PARAMS ((const char *, const char *, struct objfile *)); |