diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-01-18 15:55:53 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-01-18 15:55:53 +0000 |
commit | 4efb68b1ad0f40fa002c954c213a516d1e39cfb3 (patch) | |
tree | dd698b5a588dd03316e6d392016860ebd132cef6 /gdb/symmisc.c | |
parent | 88e90c405f7b96dc90b19bde321f219e129e7e1c (diff) | |
download | gdb-4efb68b1ad0f40fa002c954c213a516d1e39cfb3.zip gdb-4efb68b1ad0f40fa002c954c213a516d1e39cfb3.tar.gz gdb-4efb68b1ad0f40fa002c954c213a516d1e39cfb3.tar.bz2 |
2003-01-18 Andrew Cagney <ac131313@redhat.com>
* ada-valprint.c: Eliminate PTR.
* breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
* defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
* exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
* objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
* remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
* solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
* symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r-- | gdb/symmisc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index 87722ba..995372d 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -78,7 +78,7 @@ struct print_symbol_args struct ui_file *outfile; }; -static int print_symbol (PTR); +static int print_symbol (void *); static void free_symtab_block (struct objfile *, struct block *); @@ -98,10 +98,10 @@ free_symtab_block (struct objfile *objfile, struct block *b) { next_sym = sym->hash_next; xmfree (objfile->md, SYMBOL_NAME (sym)); - xmfree (objfile->md, (PTR) sym); + xmfree (objfile->md, sym); } } - xmfree (objfile->md, (PTR) b); + xmfree (objfile->md, b); } /* Free all the storage associated with the struct symtab <- S. @@ -135,7 +135,7 @@ free_symtab (register struct symtab *s) for (i = 0; i < n; i++) free_symtab_block (s->objfile, BLOCKVECTOR_BLOCK (bv, i)); /* Free the blockvector itself. */ - xmfree (s->objfile->md, (PTR) bv); + xmfree (s->objfile->md, bv); /* Also free the linetable. */ case free_linetable: @@ -143,7 +143,7 @@ free_symtab (register struct symtab *s) or by some other symtab, except for our linetable. Free that now. */ if (LINETABLE (s)) - xmfree (s->objfile->md, (PTR) LINETABLE (s)); + xmfree (s->objfile->md, LINETABLE (s)); break; } @@ -153,12 +153,12 @@ free_symtab (register struct symtab *s) /* Free source-related stuff */ if (s->line_charpos != NULL) - xmfree (s->objfile->md, (PTR) s->line_charpos); + xmfree (s->objfile->md, s->line_charpos); if (s->fullname != NULL) xmfree (s->objfile->md, s->fullname); if (s->debugformat != NULL) xmfree (s->objfile->md, s->debugformat); - xmfree (s->objfile->md, (PTR) s); + xmfree (s->objfile->md, s); } void @@ -368,7 +368,7 @@ dump_psymtab (struct objfile *objfile, struct partial_symtab *psymtab, " Full symtab was read (at "); gdb_print_host_address (psymtab->symtab, outfile); fprintf_filtered (outfile, " by function at "); - gdb_print_host_address ((PTR) psymtab->read_symtab, outfile); + gdb_print_host_address (psymtab->read_symtab, outfile); fprintf_filtered (outfile, ")\n"); } @@ -565,7 +565,7 @@ Arguments missing: an output file name and an optional symbol file name"); 1 for success. */ static int -print_symbol (PTR args) +print_symbol (void *args) { struct symbol *symbol = ((struct print_symbol_args *) args)->symbol; int depth = ((struct print_symbol_args *) args)->depth; |