forked from Imagelibrary/binutils-gdb
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
This commit is contained in:
committed by
Simon Marchi
parent
ab5f850eed
commit
0d9acb4531
@@ -1005,8 +1005,8 @@ buildsym_compunit::end_symtab_with_blockvector (struct block *static_block,
|
||||
{
|
||||
/* Reallocate the dirname on the symbol obstack. */
|
||||
const char *comp_dir = m_comp_dir.get ();
|
||||
COMPUNIT_DIRNAME (cu) = obstack_strdup (&m_objfile->objfile_obstack,
|
||||
comp_dir);
|
||||
cu->set_dirname (obstack_strdup (&m_objfile->objfile_obstack,
|
||||
comp_dir));
|
||||
}
|
||||
|
||||
/* Save the debug format string (if any) in the symtab. */
|
||||
|
||||
Reference in New Issue
Block a user