aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-exp.y
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/ada-exp.y
parent8f14fd112036be4300c81492a4659d518d9caf24 (diff)
downloadfsf-binutils-gdb-46baa3c6cf679e53b233708f7d5efd543c1084d7.zip
fsf-binutils-gdb-46baa3c6cf679e53b233708f7d5efd543c1084d7.tar.gz
fsf-binutils-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/ada-exp.y')
-rw-r--r--gdb/ada-exp.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y
index 5436585..9b70496 100644
--- a/gdb/ada-exp.y
+++ b/gdb/ada-exp.y
@@ -1699,7 +1699,7 @@ write_var_or_type (struct parser_state *par_state,
{
struct objfile *objfile = nullptr;
if (block != nullptr)
- objfile = block_objfile (block);
+ objfile = block->objfile ();
struct bound_minimal_symbol msym
= ada_lookup_simple_minsym (decoded_name.c_str (), objfile);