diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-19 22:15:30 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-02-06 15:48:18 -0500 |
commit | 0d9acb4531cfe336b2b335fbaa1f2ef878a6e4d9 (patch) | |
tree | 1e26fd55ddf025d4587b6f89178a07c3baff0e83 /gdb/macrotab.c | |
parent | ab5f850eed6aba84050d075e8c8a2cb16a876b15 (diff) | |
download | gdb-0d9acb4531cfe336b2b335fbaa1f2ef878a6e4d9.zip gdb-0d9acb4531cfe336b2b335fbaa1f2ef878a6e4d9.tar.gz gdb-0d9acb4531cfe336b2b335fbaa1f2ef878a6e4d9.tar.bz2 |
gdb: remove COMPUNIT_DIRNAME macro, add getter/setter
Add a getter and a setter for a compunit_symtab's dirname. Remove the
corresponding macro and adjust all callers.
Change-Id: If2f39b295fd26822586485e04a8b8b5aa5cc9b2e
Diffstat (limited to 'gdb/macrotab.c')
-rw-r--r-- | gdb/macrotab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/macrotab.c b/gdb/macrotab.c index 92d68e7..7ca3f31 100644 --- a/gdb/macrotab.c +++ b/gdb/macrotab.c @@ -1066,7 +1066,7 @@ macro_source_fullname (struct macro_source_file *file) const char *comp_dir = NULL; if (file->table->compunit_symtab != NULL) - comp_dir = COMPUNIT_DIRNAME (file->table->compunit_symtab); + comp_dir = file->table->compunit_symtab->dirname (); if (comp_dir == NULL || IS_ABSOLUTE_PATH (file->filename)) return file->filename; |