diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-16 17:16:44 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-19 12:51:05 -0700 |
commit | 46baa3c6cf679e53b233708f7d5efd543c1084d7 (patch) | |
tree | a909aa6e64da21c843407736e7907b941a4d1b38 /gdb/symtab.c | |
parent | 8f14fd112036be4300c81492a4659d518d9caf24 (diff) | |
download | gdb-46baa3c6cf679e53b233708f7d5efd543c1084d7.zip gdb-46baa3c6cf679e53b233708f7d5efd543c1084d7.tar.gz gdb-46baa3c6cf679e53b233708f7d5efd543c1084d7.tar.bz2 |
Convert block_objfile to method
This converts block_objfile to be a method. This was mostly written
by script.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 3a380f1..4084168 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1970,7 +1970,7 @@ lookup_language_this (const struct language_defn *lang, symbol_lookup_debug_printf_v ("lookup_language_this (%s, %s (objfile %s))", lang->name (), host_address_to_string (block), - objfile_debug_name (block_objfile (block))); + objfile_debug_name (block->objfile ())); while (block) { @@ -2058,7 +2058,7 @@ lookup_symbol_aux (const char *name, symbol_name_match_type match_type, if (symbol_lookup_debug) { struct objfile *objfile = (block == nullptr - ? nullptr : block_objfile (block)); + ? nullptr : block->objfile ()); symbol_lookup_debug_printf ("demangled symbol name = \"%s\", block @ %s (objfile %s)", @@ -2204,7 +2204,7 @@ lookup_symbol_in_block (const char *name, symbol_name_match_type match_type, if (symbol_lookup_debug) { struct objfile *objfile - = block == nullptr ? nullptr : block_objfile (block); + = block == nullptr ? nullptr : block->objfile (); symbol_lookup_debug_printf_v ("lookup_symbol_in_block (%s, %s (objfile %s), %s)", @@ -2472,7 +2472,7 @@ lookup_symbol_in_static_block (const char *name, if (symbol_lookup_debug) { struct objfile *objfile = (block == nullptr - ? nullptr : block_objfile (block)); + ? nullptr : block->objfile ()); symbol_lookup_debug_printf ("lookup_symbol_in_static_block (%s, %s (objfile %s), %s)", @@ -2612,7 +2612,7 @@ lookup_global_symbol (const char *name, struct objfile *objfile = nullptr; if (block != nullptr) { - objfile = block_objfile (block); + objfile = block->objfile (); if (objfile->separate_debug_objfile_backlink != nullptr) objfile = objfile->separate_debug_objfile_backlink; } |