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:
parent
ab5f850eed
commit
0d9acb4531
7 changed files with 21 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue