diff options
author | Doug Evans <xdje42@gmail.com> | 2014-11-18 09:28:32 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2014-11-18 09:28:32 -0800 |
commit | ee6f8984bbdbf340816a7f2aebe736f100601b22 (patch) | |
tree | c72d2b7fa498e90ac7f679a9ba48e940f523dfa5 /gdb/buildsym.c | |
parent | eb822aa6d0f2cdc1a3125da084b96c5bbe32cb86 (diff) | |
download | gdb-ee6f8984bbdbf340816a7f2aebe736f100601b22.zip gdb-ee6f8984bbdbf340816a7f2aebe736f100601b22.tar.gz gdb-ee6f8984bbdbf340816a7f2aebe736f100601b22.tar.bz2 |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c index 3ea8ff0..d0f0ddc 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 |