aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-16 17:16:44 -0700
committerTom Tromey <tom@tromey.com>2023-02-19 12:51:05 -0700
commit46baa3c6cf679e53b233708f7d5efd543c1084d7 (patch)
treea909aa6e64da21c843407736e7907b941a4d1b38 /gdb/varobj.c
parent8f14fd112036be4300c81492a4659d518d9caf24 (diff)
downloadgdb-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/varobj.c')
-rw-r--r--gdb/varobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 7f34cd0..1d54538 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -2397,7 +2397,7 @@ varobj_invalidate_if_uses_objfile (struct objfile *objfile)
{
if (var->root->valid_block != nullptr)
{
- struct objfile *bl_objfile = block_objfile (var->root->valid_block);
+ struct objfile *bl_objfile = var->root->valid_block->objfile ();
if (bl_objfile->separate_debug_objfile_backlink != nullptr)
bl_objfile = bl_objfile->separate_debug_objfile_backlink;