projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove LA_PRINT_TYPE
[binutils-gdb.git]
/
gdb
/
symfile.c
diff --git
a/gdb/symfile.c
b/gdb/symfile.c
index a660422b51e07d2e9d1828eaca6ebba78d66534a..1a64fc797423762178dde552fff39da31a86e052 100644
(file)
--- a/
gdb/symfile.c
+++ b/
gdb/symfile.c
@@
-2780,7
+2780,7
@@
allocate_symtab (struct compunit_symtab *cust, const char *filename)
symtab->filename = objfile->intern (filename);
symtab->fullname = NULL;
symtab->filename = objfile->intern (filename);
symtab->fullname = NULL;
- symtab->
language = deduce_language_from_filename (filename
);
+ symtab->
set_language (deduce_language_from_filename (filename)
);
/* This can be very verbose with lots of headers.
Only print at higher debug levels. */
/* This can be very verbose with lots of headers.
Only print at higher debug levels. */
@@
-2804,19
+2804,10
@@
allocate_symtab (struct compunit_symtab *cust, const char *filename)
}
/* Add it to CUST's list of symtabs. */
}
/* Add it to CUST's list of symtabs. */
- if (cust->filetabs == NULL)
- {
- cust->filetabs = symtab;
- cust->last_filetab = symtab;
- }
- else
- {
- cust->last_filetab->next = symtab;
- cust->last_filetab = symtab;
- }
+ cust->add_filetab (symtab);
/* Backlink to the containing compunit symtab. */
/* Backlink to the containing compunit symtab. */
- symtab->
compunit_symtab = cust
;
+ symtab->
set_compunit (cust)
;
return symtab;
}
return symtab;
}
@@
-2840,7
+2831,7
@@
allocate_compunit_symtab (struct objfile *objfile, const char *name)
saved_name = lbasename (name);
cu->name = obstack_strdup (&objfile->objfile_obstack, saved_name);
saved_name = lbasename (name);
cu->name = obstack_strdup (&objfile->objfile_obstack, saved_name);
-
COMPUNIT_DEBUGFORMAT (cu) = "unknown"
;
+
cu->set_debugformat ("unknown")
;
if (symtab_create_debug)
{
if (symtab_create_debug)
{