diff options
author | Tom Tromey <tromey@redhat.com> | 2010-03-10 18:26:59 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-03-10 18:26:59 +0000 |
commit | 8af6e1c333c15ece19956929e190bac93c974947 (patch) | |
tree | 3b3f30d090ab1679990e13846f6526af7adb8199 /gdb/mdebugread.c | |
parent | 2cdbbe44126601596aad7891de05cb7fc6bb21c8 (diff) | |
download | gdb-8af6e1c333c15ece19956929e190bac93c974947.tar.gz |
* 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.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 7452d9d88c9..fbc77669678 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; |