* symtab.c: Whitespace cleanup, no code changes.
This commit is contained in:
parent
7e08207286
commit
eca864feed
2 changed files with 24 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
2012-01-26 Doug Evans <dje@google.com>
|
2012-01-26 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* symtab.c: Whitespace cleanup, no code changes.
|
||||||
|
|
||||||
* symtab.c (lookup_symbol_in_language): Improve comment.
|
* symtab.c (lookup_symbol_in_language): Improve comment.
|
||||||
(lookup_symbol_aux): Fix comment.
|
(lookup_symbol_aux): Fix comment.
|
||||||
|
|
||||||
|
|
23
gdb/symtab.c
23
gdb/symtab.c
|
@ -459,6 +459,7 @@ symbol_init_cplus_specific (struct general_symbol_info *gsymbol,
|
||||||
correctly allocated. For C++ symbols a cplus_specific struct is
|
correctly allocated. For C++ symbols a cplus_specific struct is
|
||||||
allocated so OBJFILE must not be NULL. If this is a non C++ symbol
|
allocated so OBJFILE must not be NULL. If this is a non C++ symbol
|
||||||
OBJFILE can be NULL. */
|
OBJFILE can be NULL. */
|
||||||
|
|
||||||
void
|
void
|
||||||
symbol_set_demangled_name (struct general_symbol_info *gsymbol,
|
symbol_set_demangled_name (struct general_symbol_info *gsymbol,
|
||||||
char *name,
|
char *name,
|
||||||
|
@ -476,6 +477,7 @@ symbol_set_demangled_name (struct general_symbol_info *gsymbol,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return the demangled name of GSYMBOL. */
|
/* Return the demangled name of GSYMBOL. */
|
||||||
|
|
||||||
char *
|
char *
|
||||||
symbol_get_demangled_name (const struct general_symbol_info *gsymbol)
|
symbol_get_demangled_name (const struct general_symbol_info *gsymbol)
|
||||||
{
|
{
|
||||||
|
@ -493,6 +495,7 @@ symbol_get_demangled_name (const struct general_symbol_info *gsymbol)
|
||||||
|
|
||||||
/* Initialize the language dependent portion of a symbol
|
/* Initialize the language dependent portion of a symbol
|
||||||
depending upon the language for the symbol. */
|
depending upon the language for the symbol. */
|
||||||
|
|
||||||
void
|
void
|
||||||
symbol_set_language (struct general_symbol_info *gsymbol,
|
symbol_set_language (struct general_symbol_info *gsymbol,
|
||||||
enum language language)
|
enum language language)
|
||||||
|
@ -524,6 +527,7 @@ struct demangled_name_entry
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Hash function for the demangled name hash. */
|
/* Hash function for the demangled name hash. */
|
||||||
|
|
||||||
static hashval_t
|
static hashval_t
|
||||||
hash_demangled_name_entry (const void *data)
|
hash_demangled_name_entry (const void *data)
|
||||||
{
|
{
|
||||||
|
@ -533,6 +537,7 @@ hash_demangled_name_entry (const void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Equality function for the demangled name hash. */
|
/* Equality function for the demangled name hash. */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
eq_demangled_name_entry (const void *a, const void *b)
|
eq_demangled_name_entry (const void *a, const void *b)
|
||||||
{
|
{
|
||||||
|
@ -819,6 +824,7 @@ symbol_natural_name (const struct general_symbol_info *gsymbol)
|
||||||
|
|
||||||
/* Return the demangled name for a symbol based on the language for
|
/* Return the demangled name for a symbol based on the language for
|
||||||
that symbol. If no demangled name exists, return NULL. */
|
that symbol. If no demangled name exists, return NULL. */
|
||||||
|
|
||||||
char *
|
char *
|
||||||
symbol_demangled_name (const struct general_symbol_info *gsymbol)
|
symbol_demangled_name (const struct general_symbol_info *gsymbol)
|
||||||
{
|
{
|
||||||
|
@ -848,6 +854,7 @@ symbol_demangled_name (const struct general_symbol_info *gsymbol)
|
||||||
linkage name of the symbol, depending on how it will be searched for.
|
linkage name of the symbol, depending on how it will be searched for.
|
||||||
If there is no distinct demangled name, then returns the same value
|
If there is no distinct demangled name, then returns the same value
|
||||||
(same pointer) as SYMBOL_LINKAGE_NAME. */
|
(same pointer) as SYMBOL_LINKAGE_NAME. */
|
||||||
|
|
||||||
char *
|
char *
|
||||||
symbol_search_name (const struct general_symbol_info *gsymbol)
|
symbol_search_name (const struct general_symbol_info *gsymbol)
|
||||||
{
|
{
|
||||||
|
@ -858,6 +865,7 @@ symbol_search_name (const struct general_symbol_info *gsymbol)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize the structure fields to zero values. */
|
/* Initialize the structure fields to zero values. */
|
||||||
|
|
||||||
void
|
void
|
||||||
init_sal (struct symtab_and_line *sal)
|
init_sal (struct symtab_and_line *sal)
|
||||||
{
|
{
|
||||||
|
@ -1797,7 +1805,6 @@ basic_lookup_transparent_type (const char *name)
|
||||||
return (struct type *) 0;
|
return (struct type *) 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Find the name of the file containing main(). */
|
/* Find the name of the file containing main(). */
|
||||||
/* FIXME: What about languages without main() or specially linked
|
/* FIXME: What about languages without main() or specially linked
|
||||||
executables that have no main() ? */
|
executables that have no main() ? */
|
||||||
|
@ -2589,6 +2596,7 @@ find_pc_line_pc_range (CORE_ADDR pc, CORE_ADDR *startptr, CORE_ADDR *endptr)
|
||||||
address for that function that has an entry in SYMTAB's line info
|
address for that function that has an entry in SYMTAB's line info
|
||||||
table. If such an entry cannot be found, return FUNC_ADDR
|
table. If such an entry cannot be found, return FUNC_ADDR
|
||||||
unaltered. */
|
unaltered. */
|
||||||
|
|
||||||
CORE_ADDR
|
CORE_ADDR
|
||||||
skip_prologue_using_lineinfo (CORE_ADDR func_addr, struct symtab *symtab)
|
skip_prologue_using_lineinfo (CORE_ADDR func_addr, struct symtab *symtab)
|
||||||
{
|
{
|
||||||
|
@ -2660,6 +2668,7 @@ find_function_start_sal (struct symbol *sym, int funfirstline)
|
||||||
If the PC was explicitly specified, the SAL is not changed.
|
If the PC was explicitly specified, the SAL is not changed.
|
||||||
If the line number was explicitly specified, at most the SAL's PC
|
If the line number was explicitly specified, at most the SAL's PC
|
||||||
is updated. If SAL is already past the prologue, then do nothing. */
|
is updated. If SAL is already past the prologue, then do nothing. */
|
||||||
|
|
||||||
void
|
void
|
||||||
skip_prologue_sal (struct symtab_and_line *sal)
|
skip_prologue_sal (struct symtab_and_line *sal)
|
||||||
{
|
{
|
||||||
|
@ -2832,6 +2841,7 @@ skip_prologue_sal (struct symtab_and_line *sal)
|
||||||
some legitimate operator text, return a pointer to the
|
some legitimate operator text, return a pointer to the
|
||||||
beginning of the substring of the operator text.
|
beginning of the substring of the operator text.
|
||||||
Otherwise, return "". */
|
Otherwise, return "". */
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
operator_chars (char *p, char **end)
|
operator_chars (char *p, char **end)
|
||||||
{
|
{
|
||||||
|
@ -2970,6 +2980,7 @@ operator_chars (char *p, char **end)
|
||||||
otherwise return non-zero. Optionally add FILE to the table if ADD
|
otherwise return non-zero. Optionally add FILE to the table if ADD
|
||||||
is non-zero. If *FIRST is non-zero, forget the old table
|
is non-zero. If *FIRST is non-zero, forget the old table
|
||||||
contents. */
|
contents. */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
filename_seen (const char *file, int add, int *first)
|
filename_seen (const char *file, int add, int *first)
|
||||||
{
|
{
|
||||||
|
@ -3013,6 +3024,7 @@ filename_seen (const char *file, int add, int *first)
|
||||||
/* Slave routine for sources_info. Force line breaks at ,'s.
|
/* Slave routine for sources_info. Force line breaks at ,'s.
|
||||||
NAME is the name to print and *FIRST is nonzero if this is the first
|
NAME is the name to print and *FIRST is nonzero if this is the first
|
||||||
name printed. Set *FIRST to zero. */
|
name printed. Set *FIRST to zero. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
output_source_filename (const char *name, int *first)
|
output_source_filename (const char *name, int *first)
|
||||||
{
|
{
|
||||||
|
@ -3046,6 +3058,7 @@ output_source_filename (const char *name, int *first)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* A callback for map_partial_symbol_filenames. */
|
/* A callback for map_partial_symbol_filenames. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
output_partial_symbol_filename (const char *filename, const char *fullname,
|
output_partial_symbol_filename (const char *filename, const char *fullname,
|
||||||
void *data)
|
void *data)
|
||||||
|
@ -3104,6 +3117,7 @@ file_matches (const char *file, char *files[], int nfiles)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Free any memory associated with a search. */
|
/* Free any memory associated with a search. */
|
||||||
|
|
||||||
void
|
void
|
||||||
free_search_symbols (struct symbol_search *symbols)
|
free_search_symbols (struct symbol_search *symbols)
|
||||||
{
|
{
|
||||||
|
@ -3131,6 +3145,7 @@ make_cleanup_free_search_symbols (struct symbol_search *symbols)
|
||||||
|
|
||||||
/* Helper function for sort_search_symbols and qsort. Can only
|
/* Helper function for sort_search_symbols and qsort. Can only
|
||||||
sort symbols, not minimal symbols. */
|
sort symbols, not minimal symbols. */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
compare_search_syms (const void *sa, const void *sb)
|
compare_search_syms (const void *sa, const void *sb)
|
||||||
{
|
{
|
||||||
|
@ -3144,6 +3159,7 @@ compare_search_syms (const void *sa, const void *sb)
|
||||||
/* Sort the ``nfound'' symbols in the list after prevtail. Leave
|
/* Sort the ``nfound'' symbols in the list after prevtail. Leave
|
||||||
prevtail where it is, but update its next pointer to point to
|
prevtail where it is, but update its next pointer to point to
|
||||||
the first of the sorted symbols. */
|
the first of the sorted symbols. */
|
||||||
|
|
||||||
static struct symbol_search *
|
static struct symbol_search *
|
||||||
sort_search_symbols (struct symbol_search *prevtail, int nfound)
|
sort_search_symbols (struct symbol_search *prevtail, int nfound)
|
||||||
{
|
{
|
||||||
|
@ -3189,6 +3205,7 @@ struct search_symbols_data
|
||||||
};
|
};
|
||||||
|
|
||||||
/* A callback for expand_symtabs_matching. */
|
/* A callback for expand_symtabs_matching. */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
search_symbols_file_matches (const char *filename, void *user_data)
|
search_symbols_file_matches (const char *filename, void *user_data)
|
||||||
{
|
{
|
||||||
|
@ -3198,6 +3215,7 @@ search_symbols_file_matches (const char *filename, void *user_data)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* A callback for expand_symtabs_matching. */
|
/* A callback for expand_symtabs_matching. */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
search_symbols_name_matches (const char *symname, void *user_data)
|
search_symbols_name_matches (const char *symname, void *user_data)
|
||||||
{
|
{
|
||||||
|
@ -3993,6 +4011,7 @@ struct add_name_data
|
||||||
|
|
||||||
/* A callback used with macro_for_each and macro_for_each_in_scope.
|
/* A callback used with macro_for_each and macro_for_each_in_scope.
|
||||||
This adds a macro's name to the current completion list. */
|
This adds a macro's name to the current completion list. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
add_macro_name (const char *name, const struct macro_definition *ignore,
|
add_macro_name (const char *name, const struct macro_definition *ignore,
|
||||||
struct macro_source_file *ignore2, int ignore3,
|
struct macro_source_file *ignore2, int ignore3,
|
||||||
|
@ -4006,6 +4025,7 @@ add_macro_name (const char *name, const struct macro_definition *ignore,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* A callback for expand_partial_symbol_names. */
|
/* A callback for expand_partial_symbol_names. */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
expand_partial_symbol_name (const char *name, void *user_data)
|
expand_partial_symbol_name (const char *name, void *user_data)
|
||||||
{
|
{
|
||||||
|
@ -4426,6 +4446,7 @@ struct add_partial_filename_data
|
||||||
};
|
};
|
||||||
|
|
||||||
/* A callback for map_partial_symbol_filenames. */
|
/* A callback for map_partial_symbol_filenames. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
maybe_add_partial_symtab_filename (const char *filename, const char *fullname,
|
maybe_add_partial_symtab_filename (const char *filename, const char *fullname,
|
||||||
void *user_data)
|
void *user_data)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue