summaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-11-18 09:28:32 -0800
committerDoug Evans <xdje42@gmail.com>2014-11-18 09:28:32 -0800
commitee6f8984bbdbf340816a7f2aebe736f100601b22 (patch)
treec72d2b7fa498e90ac7f679a9ba48e940f523dfa5 /gdb/buildsym.c
parenteb822aa6d0f2cdc1a3125da084b96c5bbe32cb86 (diff)
downloadbinutils-gdb-ee6f8984bbdbf340816a7f2aebe736f100601b22.tar.gz
SYMTAB_DIRNAME: New macro.
gdb/ChangeLog: * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member symtab.dirname updated to use it.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r--gdb/buildsym.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index 3ea8ff0a901..d0f0ddcfa27 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -1244,14 +1244,14 @@ end_symtab_with_blockvector (struct block *static_block,
if (subfile->dirname)
{
/* Reallocate the dirname on the symbol obstack. */
- symtab->dirname =
+ SYMTAB_DIRNAME (symtab) =
obstack_copy0 (&objfile->objfile_obstack,
subfile->dirname,
strlen (subfile->dirname));
}
else
{
- symtab->dirname = NULL;
+ SYMTAB_DIRNAME (symtab) = NULL;
}
/* Use whatever language we have been using for this