aboutsummaryrefslogtreecommitdiff
path: root/gdb/dbxread.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/dbxread.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/dbxread.c')
-rw-r--r--gdb/dbxread.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 3a45625..447e64e 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -2189,8 +2189,8 @@ start_psymtab (struct objfile *objfile, char *filename, CORE_ADDR textlow,
start_psymtab_common (objfile, objfile->section_offsets,
filename, textlow, 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));
LDSYMOFF (result) = ldsymoff;
result->read_symtab = dbx_psymtab_to_symtab;
SYMBOL_SIZE (result) = symbol_size;
@@ -2334,8 +2334,7 @@ end_psymtab (struct partial_symtab *pst, char **include_list, int num_includes,
/* Copy the sesction_offsets array from the main psymtab. */
subpst->section_offsets = pst->section_offsets;
subpst->read_symtab_private =
- (char *) obstack_alloc (&objfile->objfile_obstack,
- sizeof (struct symloc));
+ obstack_alloc (&objfile->objfile_obstack, sizeof (struct symloc));
LDSYMOFF (subpst) =
LDSYMLEN (subpst) =
subpst->textlow =