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/dwarf2 | |
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/dwarf2')
-rw-r--r-- | gdb/dwarf2/read.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 7e62d11..cd3e6af 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -10723,7 +10723,7 @@ dwarf2_cu::setup_type_unit_groups (struct die_info *die) struct compunit_symtab *cust = tug_unshare->compunit_symtab; m_builder.reset (new struct buildsym_compunit (cust->objfile (), "", - COMPUNIT_DIRNAME (cust), + cust->dirname (), compunit_language (cust), 0, cust)); list_in_scope = get_builder ()->get_file_symbols (); @@ -10775,7 +10775,7 @@ dwarf2_cu::setup_type_unit_groups (struct die_info *die) struct compunit_symtab *cust = tug_unshare->compunit_symtab; m_builder.reset (new struct buildsym_compunit (cust->objfile (), "", - COMPUNIT_DIRNAME (cust), + cust->dirname (), compunit_language (cust), 0, cust)); list_in_scope = get_builder ()->get_file_symbols (); |