aboutsummaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-03-10 18:27:00 +0000
committerTom Tromey <tromey@redhat.com>2010-03-10 18:27:00 +0000
commite38df1d074456c912b31d672bde73afcea5b5c92 (patch)
tree0caa4647ecc72597b0cb74e51b73221ae875f541 /gdb/mdebugread.c
parentccefe4c44c4b2d1bc88757fba90ff59eb017a074 (diff)
downloadgdb-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/mdebugread.c')
-rw-r--r--gdb/mdebugread.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index 7452d9d..fbc7766 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -2660,9 +2660,8 @@ parse_partial_symbols (struct objfile *objfile)
textlow,
objfile->global_psymbols.next,
objfile->static_psymbols.next);
- pst->read_symtab_private = ((char *)
- obstack_alloc (&objfile->objfile_obstack,
- sizeof (struct symloc)));
+ pst->read_symtab_private = obstack_alloc (&objfile->objfile_obstack,
+ sizeof (struct symloc));
memset (pst->read_symtab_private, 0, sizeof (struct symloc));
save_pst = pst;
@@ -4694,9 +4693,8 @@ new_psymtab (char *name, struct objfile *objfile)
/* Keep a backpointer to the file's symbols */
- psymtab->read_symtab_private = ((char *)
- obstack_alloc (&objfile->objfile_obstack,
- sizeof (struct symloc)));
+ psymtab->read_symtab_private = obstack_alloc (&objfile->objfile_obstack,
+ sizeof (struct symloc));
memset (psymtab->read_symtab_private, 0, sizeof (struct symloc));
CUR_BFD (psymtab) = cur_bfd;
DEBUG_SWAP (psymtab) = debug_swap;