diff options
author | Tom Tromey <tromey@redhat.com> | 2010-03-10 18:27:00 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-03-10 18:27:00 +0000 |
commit | e38df1d074456c912b31d672bde73afcea5b5c92 (patch) | |
tree | 0caa4647ecc72597b0cb74e51b73221ae875f541 /gdb/xcoffread.c | |
parent | ccefe4c44c4b2d1bc88757fba90ff59eb017a074 (diff) | |
download | gdb-e38df1d074456c912b31d672bde73afcea5b5c92.zip gdb-e38df1d074456c912b31d672bde73afcea5b5c92.tar.gz gdb-e38df1d074456c912b31d672bde73afcea5b5c92.tar.bz2 |
* xcoffread.c (xcoff_start_psymtab): Update.
(xcoff_end_psymtab): Update.
* psymtab.c (allocate_psymtab): Remove dead code.
* psympriv.h (struct partial_symtab) <read_symtab_private>: Now
void*.
* mdebugread.c (parse_partial_symbols): Update.
(new_psymtab): Likewise.
* dwarf2read.c (process_psymtab_comp_unit): Update.
(psymtab_to_symtab_1): Update.
* dbxread.c (start_psymtab): Update.
(end_psymtab): Likewise.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r-- | gdb/xcoffread.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 11a8853..2720f6d 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -1959,8 +1959,8 @@ xcoff_start_psymtab (struct objfile *objfile, char *filename, int first_symnum, 0, global_syms, static_syms); - result->read_symtab_private = (char *) - obstack_alloc (&objfile->objfile_obstack, sizeof (struct symloc)); + result->read_symtab_private = obstack_alloc (&objfile->objfile_obstack, + sizeof (struct symloc)); ((struct symloc *) result->read_symtab_private)->first_symnum = first_symnum; result->read_symtab = xcoff_psymtab_to_symtab; @@ -2021,9 +2021,8 @@ xcoff_end_psymtab (struct partial_symtab *pst, char **include_list, allocate_psymtab (include_list[i], objfile); subpst->section_offsets = pst->section_offsets; - subpst->read_symtab_private = - (char *) obstack_alloc (&objfile->objfile_obstack, - sizeof (struct symloc)); + subpst->read_symtab_private = obstack_alloc (&objfile->objfile_obstack, + sizeof (struct symloc)); ((struct symloc *) subpst->read_symtab_private)->first_symnum = 0; ((struct symloc *) subpst->read_symtab_private)->numsyms = 0; subpst->textlow = 0; |