diff options
author | Tom Tromey <tom@tromey.com> | 2022-04-17 20:00:59 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-04-20 09:28:40 -0600 |
commit | 4206d69e96ac401cf2975f37bf4e4d3a3c838313 (patch) | |
tree | 6301edfeea773f593e1949a30831c442bf87b90f /gdb/mi | |
parent | bcd6845e2b66adb58d36eb1d9b8fbf71900b517d (diff) | |
download | gdb-4206d69e96ac401cf2975f37bf4e4d3a3c838313.zip gdb-4206d69e96ac401cf2975f37bf4e4d3a3c838313.tar.gz gdb-4206d69e96ac401cf2975f37bf4e4d3a3c838313.tar.bz2 |
Replace symbol_symtab with symbol::symtab
This turns symbol_symtab into a method on symbol. It also replaces
symbol_set_symtab with a method.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-symbol-cmds.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/mi/mi-symbol-cmds.c b/gdb/mi/mi-symbol-cmds.c index 60321f7..56e9c3f 100644 --- a/gdb/mi/mi-symbol-cmds.c +++ b/gdb/mi/mi-symbol-cmds.c @@ -132,7 +132,7 @@ mi_symbol_info (enum search_domain kind, const char *name_regexp, /* As long as we have debug symbols... */ while (i < symbols.size () && symbols[i].msymbol.minsym == nullptr) { - symtab *symtab = symbol_symtab (symbols[i].symbol); + symtab *symtab = symbols[i].symbol->symtab (); ui_out_emit_tuple symtab_tuple_emitter (uiout, nullptr); uiout->field_string ("filename", @@ -144,7 +144,7 @@ mi_symbol_info (enum search_domain kind, const char *name_regexp, /* As long as we have debug symbols from this symtab... */ for (; (i < symbols.size () && symbols[i].msymbol.minsym == nullptr - && symbol_symtab (symbols[i].symbol) == symtab); + && symbols[i].symbol->symtab () == symtab); ++i) { symbol_search &s = symbols[i]; @@ -256,7 +256,7 @@ output_module_symbols_in_single_module_and_file /* The symbol for the first result, and the symtab in which it resides. */ const symbol *first_result_symbol = iter->second.symbol; - symtab *first_symbtab = symbol_symtab (first_result_symbol); + symtab *first_symbtab = first_result_symbol->symtab (); /* Formatted output. */ ui_out_emit_tuple current_file (uiout, nullptr); @@ -269,7 +269,7 @@ output_module_symbols_in_single_module_and_file we change module, or we change symtab. */ for (; (iter != end && first_module_symbol == iter->first.symbol - && first_symbtab == symbol_symtab (iter->second.symbol)); + && first_symbtab == iter->second.symbol->symtab ()); ++iter) output_debug_symbol (uiout, kind, iter->second.symbol, iter->second.block); |