diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-19 13:15:24 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-02-06 15:48:18 -0500 |
commit | 9821f3fa56de3e2c13c234357421ae1839ce27f7 (patch) | |
tree | 8c6ee2bcce75dce1d9b7b13b102fd373be93569f /gdb/source.c | |
parent | f1f58f102ee5f3dda04853582fcb6f22cc00329b (diff) | |
download | gdb-9821f3fa56de3e2c13c234357421ae1839ce27f7.zip gdb-9821f3fa56de3e2c13c234357421ae1839ce27f7.tar.gz gdb-9821f3fa56de3e2c13c234357421ae1839ce27f7.tar.bz2 |
gdb: remove COMPUNIT_OBJFILE macro
Remove the macro, update all users to use the getter directly.
Change-Id: I3f0fd6f4455d1c4ebd5da73b561eb18a979ef1f6
Diffstat (limited to 'gdb/source.c')
-rw-r--r-- | gdb/source.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/source.c b/gdb/source.c index f749dd6..73c1c1d 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -1186,7 +1186,7 @@ open_source_file (struct symtab *s) { if (SYMTAB_COMPUNIT (s) != nullptr) { - const objfile *ofp = COMPUNIT_OBJFILE (SYMTAB_COMPUNIT (s)); + const objfile *ofp = SYMTAB_COMPUNIT (s)->objfile (); std::string srcpath; if (IS_ABSOLUTE_PATH (s->filename)) |