aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-11-18 09:32:10 -0800
committerDoug Evans <xdje42@gmail.com>2014-11-18 09:32:10 -0800
commit8435453b810d8ab0574e509446003d10d04abfd4 (patch)
tree81596d7c347ed52caa1edb74412662b1c54f24b1 /gdb/buildsym.c
parentee6f8984bbdbf340816a7f2aebe736f100601b22 (diff)
downloadgdb-8435453b810d8ab0574e509446003d10d04abfd4.zip
gdb-8435453b810d8ab0574e509446003d10d04abfd4.tar.gz
gdb-8435453b810d8ab0574e509446003d10d04abfd4.tar.bz2
symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses updated.
gdb/ChangeLog: * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses updated.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r--gdb/buildsym.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index d0f0ddc..d63b3b9 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -1232,13 +1232,14 @@ end_symtab_with_blockvector (struct block *static_block,
if (subfile->line_vector)
{
/* Reallocate the line table on the symbol obstack. */
- symtab->linetable = (struct linetable *)
+ SYMTAB_LINETABLE (symtab) = (struct linetable *)
obstack_alloc (&objfile->objfile_obstack, linetablesize);
- memcpy (symtab->linetable, subfile->line_vector, linetablesize);
+ memcpy (SYMTAB_LINETABLE (symtab), subfile->line_vector,
+ linetablesize);
}
else
{
- symtab->linetable = NULL;
+ SYMTAB_LINETABLE (symtab) = NULL;
}
symtab->block_line_section = section;
if (subfile->dirname)