diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-05 10:23:04 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-01-28 10:58:16 -0700 |
commit | d4bf9040be06250a0ee07d5bd6dc8a1e42590415 (patch) | |
tree | 66f950fb8d2003d53e2e44de3b48b1f8ca71718a /gdb/symtab.h | |
parent | 0ff2d66b1f1f3125ff59a97539b97a61bc0d6bf3 (diff) | |
download | gdb-d4bf9040be06250a0ee07d5bd6dc8a1e42590415.zip gdb-d4bf9040be06250a0ee07d5bd6dc8a1e42590415.tar.gz gdb-d4bf9040be06250a0ee07d5bd6dc8a1e42590415.tar.bz2 |
Simplify symbol_to_info_string
Thi simplifies symbol_to_info_string, removing the 'kind' parameter
and instead having it use the symbol's domain.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 6b5b087..381a828 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -2677,11 +2677,9 @@ extern std::vector<module_symbol_search> search_module_symbols /* Convert a global or static symbol SYM (based on BLOCK, which should be either GLOBAL_BLOCK or STATIC_BLOCK) into a string for use in 'info' - type commands (e.g. 'info variables', 'info functions', etc). KIND is - the type of symbol that was searched for which gave us SYM. */ + type commands (e.g. 'info variables', 'info functions', etc). */ -extern std::string symbol_to_info_string (struct symbol *sym, int block, - enum search_domain kind); +extern std::string symbol_to_info_string (struct symbol *sym, int block); extern bool treg_matches_sym_type_name (const compiled_regex &treg, const struct symbol *sym); |