GNU Binutils with patches for OS216
Révision | da2a1c36aed0b986720650a93283c4c07b5cceed (tree) |
---|---|
l'heure | 2002-03-26 01:50:20 |
Auteur | Alexandre Oliva <aoliva@redh...> |
Commiter | Alexandre Oliva |
* coffread.c: Remove redundant static declarations. Replace
occurrences of PTR' with void *'.
* elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
* top.h (quit_cover): Likewise.
* defs.h (catch_errors): Likewise.
@@ -1,3 +1,11 @@ | ||
1 | +2002-03-25 Alexandre Oliva <aoliva@redhat.com> | |
2 | + | |
3 | + * coffread.c: Remove redundant static declarations. Replace | |
4 | + occurrences of `PTR' with `void *'. | |
5 | + * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise. | |
6 | + * top.h (quit_cover): Likewise. | |
7 | + * defs.h (catch_errors): Likewise. | |
8 | + | |
1 | 9 | 2002-03-23 Andrew Cagney <ac131313@redhat.com> |
2 | 10 | |
3 | 11 | * MAINTAINERS (sh-elf): Change warning flag to -w. |
@@ -192,8 +192,6 @@ static struct symbol *process_coff_symbol (struct coff_symbol *, | ||
192 | 192 | |
193 | 193 | static void patch_opaque_types (struct symtab *); |
194 | 194 | |
195 | -static void patch_type (struct type *, struct type *); | |
196 | - | |
197 | 195 | static void enter_linenos (long, int, int, struct objfile *); |
198 | 196 | |
199 | 197 | static void free_linetab (void); |
@@ -216,32 +214,6 @@ static void read_one_sym (struct coff_symbol *, | ||
216 | 214 | struct internal_syment *, union internal_auxent *); |
217 | 215 | |
218 | 216 | static void coff_symtab_read (long, unsigned int, struct objfile *); |
219 | - | |
220 | -static void find_linenos (bfd *, sec_ptr, PTR); | |
221 | - | |
222 | -static void coff_symfile_init (struct objfile *); | |
223 | - | |
224 | -static void coff_new_init (struct objfile *); | |
225 | - | |
226 | -static void coff_symfile_read (struct objfile *, int); | |
227 | - | |
228 | -static void coff_symfile_finish (struct objfile *); | |
229 | - | |
230 | -static void record_minimal_symbol (char *, CORE_ADDR, | |
231 | - enum minimal_symbol_type, | |
232 | - struct objfile *); | |
233 | - | |
234 | -static void coff_end_symtab (struct objfile *); | |
235 | - | |
236 | -static void complete_symtab (char *, CORE_ADDR, unsigned int); | |
237 | - | |
238 | -static void coff_start_symtab (char *); | |
239 | - | |
240 | -static struct type *coff_alloc_type (int); | |
241 | - | |
242 | -static struct type **coff_lookup_type (int); | |
243 | - | |
244 | -static void coff_locate_sections (bfd *, asection *, PTR); | |
245 | 217 | |
246 | 218 | /* We are called once per section from coff_symfile_read. We |
247 | 219 | need to examine each section we are passed, check to see |
@@ -254,7 +226,7 @@ static void coff_locate_sections (bfd *, asection *, PTR); | ||
254 | 226 | -kingdon). */ |
255 | 227 | |
256 | 228 | static void |
257 | -coff_locate_sections (bfd *abfd, asection *sectp, PTR csip) | |
229 | +coff_locate_sections (bfd *abfd, asection *sectp, void *csip) | |
258 | 230 | { |
259 | 231 | register struct coff_symfile_info *csi; |
260 | 232 | const char *name; |
@@ -312,10 +284,8 @@ struct find_targ_sec_arg | ||
312 | 284 | asection **resultp; |
313 | 285 | }; |
314 | 286 | |
315 | -static void find_targ_sec (bfd *, asection *, PTR); | |
316 | - | |
317 | 287 | static void |
318 | -find_targ_sec (bfd *abfd, asection *sect, PTR obj) | |
288 | +find_targ_sec (bfd *abfd, asection *sect, void *obj) | |
319 | 289 | { |
320 | 290 | struct find_targ_sec_arg *args = (struct find_targ_sec_arg *) obj; |
321 | 291 | if (sect->target_index == args->targ_index) |
@@ -509,7 +479,8 @@ coff_symfile_init (struct objfile *objfile) | ||
509 | 479 | objfile->sym_stab_info = (struct dbx_symfile_info *) |
510 | 480 | xmmalloc (objfile->md, sizeof (struct dbx_symfile_info)); |
511 | 481 | |
512 | - memset ((PTR) objfile->sym_stab_info, 0, sizeof (struct dbx_symfile_info)); | |
482 | + memset (objfile->sym_stab_info, 0, | |
483 | + sizeof (struct dbx_symfile_info)); | |
513 | 484 | |
514 | 485 | /* Allocate struct to keep track of the symfile */ |
515 | 486 | objfile->sym_private = xmmalloc (objfile->md, |
@@ -531,7 +502,7 @@ coff_symfile_init (struct objfile *objfile) | ||
531 | 502 | |
532 | 503 | /* ARGSUSED */ |
533 | 504 | static void |
534 | -find_linenos (bfd *abfd, sec_ptr asect, PTR vpinfo) | |
505 | +find_linenos (bfd *abfd, sec_ptr asect, void *vpinfo) | |
535 | 506 | { |
536 | 507 | struct coff_symfile_info *info; |
537 | 508 | int size, count; |
@@ -625,7 +596,7 @@ coff_symfile_read (struct objfile *objfile, int mainline) | ||
625 | 596 | /* Read the line number table, all at once. */ |
626 | 597 | info->min_lineno_offset = 0; |
627 | 598 | info->max_lineno_offset = 0; |
628 | - bfd_map_over_sections (abfd, find_linenos, (PTR) info); | |
599 | + bfd_map_over_sections (abfd, find_linenos, (void *) info); | |
629 | 600 | |
630 | 601 | make_cleanup (free_linetab_cleanup, 0 /*ignore*/); |
631 | 602 | val = init_lineno (abfd, info->min_lineno_offset, |
@@ -662,7 +633,7 @@ coff_symfile_read (struct objfile *objfile, int mainline) | ||
662 | 633 | |
663 | 634 | install_minimal_symbols (objfile); |
664 | 635 | |
665 | - bfd_map_over_sections (abfd, coff_locate_sections, (PTR) info); | |
636 | + bfd_map_over_sections (abfd, coff_locate_sections, (void *) info); | |
666 | 637 | |
667 | 638 | if (info->stabsects) |
668 | 639 | { |
@@ -1152,7 +1152,7 @@ extern int catch_exceptions (struct ui_out *uiout, | ||
1152 | 1152 | This function is superseeded by catch_exceptions(). */ |
1153 | 1153 | |
1154 | 1154 | typedef int (catch_errors_ftype) (PTR); |
1155 | -extern int catch_errors (catch_errors_ftype *, PTR, char *, return_mask); | |
1155 | +extern int catch_errors (catch_errors_ftype *, void *, char *, return_mask); | |
1156 | 1156 | |
1157 | 1157 | /* Template to catch_errors() that wraps calls to command |
1158 | 1158 | functions. */ |
@@ -66,29 +66,7 @@ struct complaint stab_info_mismatch_complaint = | ||
66 | 66 | struct complaint stab_info_questionable_complaint = |
67 | 67 | {"elf/stab section information questionable for %s", 0, 0}; |
68 | 68 | |
69 | -static void elf_symfile_init (struct objfile *); | |
70 | - | |
71 | -static void elf_new_init (struct objfile *); | |
72 | - | |
73 | -static void elf_symfile_read (struct objfile *, int); | |
74 | - | |
75 | -static void elf_symfile_finish (struct objfile *); | |
76 | - | |
77 | -static void elf_symtab_read (struct objfile *, int); | |
78 | - | |
79 | -static void free_elfinfo (PTR); | |
80 | - | |
81 | -static struct minimal_symbol *record_minimal_symbol_and_info (char *, | |
82 | - CORE_ADDR, | |
83 | - enum | |
84 | - minimal_symbol_type, | |
85 | - char *, | |
86 | - asection * | |
87 | - bfd_section, | |
88 | - struct objfile | |
89 | - *); | |
90 | - | |
91 | -static void elf_locate_sections (bfd *, asection *, PTR); | |
69 | +static void free_elfinfo (void *); | |
92 | 70 | |
93 | 71 | /* We are called once per section from elf_symfile_read. We |
94 | 72 | need to examine each section we are passed, check to see |
@@ -110,7 +88,7 @@ static void elf_locate_sections (bfd *, asection *, PTR); | ||
110 | 88 | -kingdon). */ |
111 | 89 | |
112 | 90 | static void |
113 | -elf_locate_sections (bfd *ignore_abfd, asection *sectp, PTR eip) | |
91 | +elf_locate_sections (bfd *ignore_abfd, asection *sectp, void *eip) | |
114 | 92 | { |
115 | 93 | register struct elfinfo *ei; |
116 | 94 |
@@ -443,7 +421,8 @@ elf_symtab_read (struct objfile *objfile, int dynamic) | ||
443 | 421 | { |
444 | 422 | sectinfo = (struct stab_section_info *) |
445 | 423 | xmmalloc (objfile->md, sizeof (*sectinfo)); |
446 | - memset ((PTR) sectinfo, 0, sizeof (*sectinfo)); | |
424 | + memset (sectinfo, 0, | |
425 | + sizeof (*sectinfo)); | |
447 | 426 | if (filesym == NULL) |
448 | 427 | { |
449 | 428 | complain (§ion_info_complaint, |
@@ -511,7 +490,7 @@ elf_symtab_read (struct objfile *objfile, int dynamic) | ||
511 | 490 | size = ((elf_symbol_type *) sym)->internal_elf_sym.st_size; |
512 | 491 | msym = record_minimal_symbol_and_info |
513 | 492 | ((char *) sym->name, symaddr, |
514 | - ms_type, (PTR) size, sym->section, objfile); | |
493 | + ms_type, (void *) size, sym->section, objfile); | |
515 | 494 | #ifdef SOFUN_ADDRESS_MAYBE_MISSING |
516 | 495 | if (msym != NULL) |
517 | 496 | msym->filename = filesymname; |
@@ -572,7 +551,7 @@ elf_symfile_read (struct objfile *objfile, int mainline) | ||
572 | 551 | objfile->sym_stab_info = (struct dbx_symfile_info *) |
573 | 552 | xmmalloc (objfile->md, sizeof (struct dbx_symfile_info)); |
574 | 553 | memset ((char *) objfile->sym_stab_info, 0, sizeof (struct dbx_symfile_info)); |
575 | - make_cleanup (free_elfinfo, (PTR) objfile); | |
554 | + make_cleanup (free_elfinfo, (void *) objfile); | |
576 | 555 | |
577 | 556 | /* Process the normal ELF symbol table first. This may write some |
578 | 557 | chain of info into the dbx_symfile_info in objfile->sym_stab_info, |
@@ -597,7 +576,7 @@ elf_symfile_read (struct objfile *objfile, int mainline) | ||
597 | 576 | } |
598 | 577 | |
599 | 578 | /* We first have to find them... */ |
600 | - bfd_map_over_sections (abfd, elf_locate_sections, (PTR) & ei); | |
579 | + bfd_map_over_sections (abfd, elf_locate_sections, (void *) & ei); | |
601 | 580 | |
602 | 581 | /* ELF debugging information is inserted into the psymtab in the |
603 | 582 | order of least informative first - most informative last. Since |
@@ -667,7 +646,7 @@ elf_symfile_read (struct objfile *objfile, int mainline) | ||
667 | 646 | stab_section_info's, that might be dangling from it. */ |
668 | 647 | |
669 | 648 | static void |
670 | -free_elfinfo (PTR objp) | |
649 | +free_elfinfo (void *objp) | |
671 | 650 | { |
672 | 651 | struct objfile *objfile = (struct objfile *) objp; |
673 | 652 | struct dbx_symfile_info *dbxinfo = objfile->sym_stab_info; |
@@ -327,30 +327,15 @@ static int found_ecoff_debugging_info; | ||
327 | 327 | |
328 | 328 | /* Forward declarations */ |
329 | 329 | |
330 | -static void add_pending (FDR *, char *, struct type *); | |
331 | - | |
332 | -static struct mdebug_pending *is_pending_symbol (FDR *, char *); | |
333 | - | |
334 | -static void pop_parse_stack (void); | |
335 | - | |
336 | -static void push_parse_stack (void); | |
337 | - | |
338 | -static char *fdr_name (FDR *); | |
339 | - | |
340 | -static void mdebug_psymtab_to_symtab (struct partial_symtab *); | |
341 | - | |
342 | -static int | |
343 | -upgrade_type (int, struct type **, int, union aux_ext *, int, char *); | |
330 | +static int upgrade_type (int, struct type **, int, union aux_ext *, | |
331 | + int, char *); | |
344 | 332 | |
345 | 333 | static void parse_partial_symbols (struct objfile *); |
346 | 334 | |
347 | -static FDR * get_rfd (int, int); | |
348 | - | |
349 | 335 | static int has_opaque_xref (FDR *, SYMR *); |
350 | 336 | |
351 | -static int | |
352 | -cross_ref (int, union aux_ext *, struct type **, enum type_code, | |
353 | - char **, int, char *); | |
337 | +static int cross_ref (int, union aux_ext *, struct type **, enum type_code, | |
338 | + char **, int, char *); | |
354 | 339 | |
355 | 340 | static struct symbol *new_symbol (char *); |
356 | 341 |
@@ -364,10 +349,6 @@ static struct linetable *new_linetable (int); | ||
364 | 349 | |
365 | 350 | static struct blockvector *new_bvect (int); |
366 | 351 | |
367 | -static int | |
368 | -parse_symbol (SYMR *, union aux_ext *, char *, int, struct section_offsets *, | |
369 | - struct objfile *); | |
370 | - | |
371 | 352 | static struct type *parse_type (int, union aux_ext *, unsigned int, int *, |
372 | 353 | int, char *); |
373 | 354 |
@@ -376,12 +357,8 @@ static struct symbol *mylookup_symbol (char *, struct block *, namespace_enum, | ||
376 | 357 | |
377 | 358 | static struct block *shrink_block (struct block *, struct symtab *); |
378 | 359 | |
379 | -static PTR xzalloc (unsigned int); | |
380 | - | |
381 | 360 | static void sort_blocks (struct symtab *); |
382 | 361 | |
383 | -static int compare_blocks (const PTR, const PTR); | |
384 | - | |
385 | 362 | static struct partial_symtab *new_psymtab (char *, struct objfile *); |
386 | 363 | |
387 | 364 | static void psymtab_to_symtab_1 (struct partial_symtab *, char *); |
@@ -394,8 +371,8 @@ static int add_line (struct linetable *, int, CORE_ADDR, int); | ||
394 | 371 | |
395 | 372 | static struct linetable *shrink_linetable (struct linetable *); |
396 | 373 | |
397 | -static void | |
398 | -handle_psymbol_enumerators (struct objfile *, FDR *, int, CORE_ADDR); | |
374 | +static void handle_psymbol_enumerators (struct objfile *, FDR *, int, | |
375 | + CORE_ADDR); | |
399 | 376 | |
400 | 377 | static char *mdebug_next_symbol_text (struct objfile *); |
401 | 378 |
@@ -405,10 +382,10 @@ CORE_ADDR sigtramp_address, sigtramp_end; | ||
405 | 382 | |
406 | 383 | /* Allocate zeroed memory */ |
407 | 384 | |
408 | -static PTR | |
385 | +static void * | |
409 | 386 | xzalloc (unsigned int size) |
410 | 387 | { |
411 | - PTR p = xmalloc (size); | |
388 | + void *p = xmalloc (size); | |
412 | 389 | |
413 | 390 | memset (p, 0, size); |
414 | 391 | return p; |
@@ -698,7 +675,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend, | ||
698 | 675 | struct section_offsets *section_offsets, struct objfile *objfile) |
699 | 676 | { |
700 | 677 | const bfd_size_type external_sym_size = debug_swap->external_sym_size; |
701 | - void (*const swap_sym_in) (bfd *, PTR, SYMR *) = debug_swap->swap_sym_in; | |
678 | + void (*const swap_sym_in) (bfd *, void *, SYMR *) = debug_swap->swap_sym_in; | |
702 | 679 | char *name; |
703 | 680 | struct symbol *s; |
704 | 681 | struct block *b; |
@@ -1137,7 +1114,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend, | ||
1137 | 1114 | enum_sym = ((struct symbol *) |
1138 | 1115 | obstack_alloc (¤t_objfile->symbol_obstack, |
1139 | 1116 | sizeof (struct symbol))); |
1140 | - memset ((PTR) enum_sym, 0, sizeof (struct symbol)); | |
1117 | + memset (enum_sym, 0, sizeof (struct symbol)); | |
1141 | 1118 | SYMBOL_NAME (enum_sym) = |
1142 | 1119 | obsavestring (f->name, strlen (f->name), |
1143 | 1120 | ¤t_objfile->symbol_obstack); |
@@ -1235,7 +1212,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend, | ||
1235 | 1212 | e = ((struct mips_extra_func_info *) |
1236 | 1213 | obstack_alloc (¤t_objfile->symbol_obstack, |
1237 | 1214 | sizeof (struct mips_extra_func_info))); |
1238 | - memset ((PTR) e, 0, sizeof (struct mips_extra_func_info)); | |
1215 | + memset (e, 0, sizeof (struct mips_extra_func_info)); | |
1239 | 1216 | SYMBOL_VALUE (s) = (long) e; |
1240 | 1217 | e->numargs = top_stack->numargs; |
1241 | 1218 | e->pdr.framereg = -1; |
@@ -2230,9 +2207,9 @@ parse_partial_symbols (struct objfile *objfile) | ||
2230 | 2207 | const bfd_size_type external_sym_size = debug_swap->external_sym_size; |
2231 | 2208 | const bfd_size_type external_rfd_size = debug_swap->external_rfd_size; |
2232 | 2209 | const bfd_size_type external_ext_size = debug_swap->external_ext_size; |
2233 | - void (*const swap_ext_in) (bfd *, PTR, EXTR *) = debug_swap->swap_ext_in; | |
2234 | - void (*const swap_sym_in) (bfd *, PTR, SYMR *) = debug_swap->swap_sym_in; | |
2235 | - void (*const swap_rfd_in) (bfd *, PTR, RFDT *) = debug_swap->swap_rfd_in; | |
2210 | + void (*const swap_ext_in) (bfd *, void *, EXTR *) = debug_swap->swap_ext_in; | |
2211 | + void (*const swap_sym_in) (bfd *, void *, SYMR *) = debug_swap->swap_sym_in; | |
2212 | + void (*const swap_rfd_in) (bfd *, void *, RFDT *) = debug_swap->swap_rfd_in; | |
2236 | 2213 | int f_idx, s_idx; |
2237 | 2214 | HDRR *hdr = &debug_info->symbolic_header; |
2238 | 2215 | /* Running pointers */ |
@@ -2319,7 +2296,7 @@ parse_partial_symbols (struct objfile *objfile) | ||
2319 | 2296 | ((struct mdebug_pending **) |
2320 | 2297 | obstack_alloc (&objfile->psymbol_obstack, |
2321 | 2298 | hdr->ifdMax * sizeof (struct mdebug_pending *))); |
2322 | - memset ((PTR) pending_list, 0, | |
2299 | + memset (pending_list, 0, | |
2323 | 2300 | hdr->ifdMax * sizeof (struct mdebug_pending *)); |
2324 | 2301 | |
2325 | 2302 | /* Pass 0 over external syms: swap them in. */ |
@@ -2522,7 +2499,7 @@ parse_partial_symbols (struct objfile *objfile) | ||
2522 | 2499 | pst->read_symtab_private = ((char *) |
2523 | 2500 | obstack_alloc (&objfile->psymbol_obstack, |
2524 | 2501 | sizeof (struct symloc))); |
2525 | - memset ((PTR) pst->read_symtab_private, 0, sizeof (struct symloc)); | |
2502 | + memset (pst->read_symtab_private, 0, sizeof (struct symloc)); | |
2526 | 2503 | |
2527 | 2504 | save_pst = pst; |
2528 | 2505 | TEXTLOW (pst) = pst->textlow; |
@@ -3673,7 +3650,7 @@ handle_psymbol_enumerators (struct objfile *objfile, FDR *fh, int stype, | ||
3673 | 3650 | CORE_ADDR svalue) |
3674 | 3651 | { |
3675 | 3652 | const bfd_size_type external_sym_size = debug_swap->external_sym_size; |
3676 | - void (*const swap_sym_in) (bfd *, PTR, SYMR *) = debug_swap->swap_sym_in; | |
3653 | + void (*const swap_sym_in) (bfd *, void *, SYMR *) = debug_swap->swap_sym_in; | |
3677 | 3654 | char *ext_sym = ((char *) debug_info->external_sym |
3678 | 3655 | + ((fh->isymBase + cur_sdx + 1) * external_sym_size)); |
3679 | 3656 | SYMR sh; |
@@ -3764,8 +3741,8 @@ psymtab_to_symtab_1 (struct partial_symtab *pst, char *filename) | ||
3764 | 3741 | { |
3765 | 3742 | bfd_size_type external_sym_size; |
3766 | 3743 | bfd_size_type external_pdr_size; |
3767 | - void (*swap_sym_in) (bfd *, PTR, SYMR *); | |
3768 | - void (*swap_pdr_in) (bfd *, PTR, PDR *); | |
3744 | + void (*swap_sym_in) (bfd *, void *, SYMR *); | |
3745 | + void (*swap_pdr_in) (bfd *, void *, PDR *); | |
3769 | 3746 | int i; |
3770 | 3747 | struct symtab *st = NULL; |
3771 | 3748 | FDR *fh; |
@@ -3918,7 +3895,7 @@ psymtab_to_symtab_1 (struct partial_symtab *pst, char *filename) | ||
3918 | 3895 | sizeof (struct mips_extra_func_info))); |
3919 | 3896 | struct symbol *s = new_symbol (MIPS_EFI_SYMBOL_NAME); |
3920 | 3897 | |
3921 | - memset ((PTR) e, 0, sizeof (struct mips_extra_func_info)); | |
3898 | + memset (e, 0, sizeof (struct mips_extra_func_info)); | |
3922 | 3899 | SYMBOL_NAMESPACE (s) = LABEL_NAMESPACE; |
3923 | 3900 | SYMBOL_CLASS (s) = LOC_CONST; |
3924 | 3901 | SYMBOL_TYPE (s) = mdebug_type_void; |
@@ -4467,7 +4444,7 @@ add_block (struct block *b, struct symtab *s) | ||
4467 | 4444 | { |
4468 | 4445 | struct blockvector *bv = BLOCKVECTOR (s); |
4469 | 4446 | |
4470 | - bv = (struct blockvector *) xrealloc ((PTR) bv, | |
4447 | + bv = (struct blockvector *) xrealloc ((void *) bv, | |
4471 | 4448 | (sizeof (struct blockvector) |
4472 | 4449 | + BLOCKVECTOR_NBLOCKS (bv) |
4473 | 4450 | * sizeof (bv->block))); |
@@ -4515,7 +4492,7 @@ add_line (struct linetable *lt, int lineno, CORE_ADDR adr, int last) | ||
4515 | 4492 | /* Blocks with a smaller low bound should come first */ |
4516 | 4493 | |
4517 | 4494 | static int |
4518 | -compare_blocks (const PTR arg1, const PTR arg2) | |
4495 | +compare_blocks (const void *arg1, const void *arg2) | |
4519 | 4496 | { |
4520 | 4497 | register int addr_diff; |
4521 | 4498 | struct block **b1 = (struct block **) arg1; |
@@ -4617,7 +4594,7 @@ new_psymtab (char *name, struct objfile *objfile) | ||
4617 | 4594 | psymtab->read_symtab_private = ((char *) |
4618 | 4595 | obstack_alloc (&objfile->psymbol_obstack, |
4619 | 4596 | sizeof (struct symloc))); |
4620 | - memset ((PTR) psymtab->read_symtab_private, 0, sizeof (struct symloc)); | |
4597 | + memset (psymtab->read_symtab_private, 0, sizeof (struct symloc)); | |
4621 | 4598 | CUR_BFD (psymtab) = cur_bfd; |
4622 | 4599 | DEBUG_SWAP (psymtab) = debug_swap; |
4623 | 4600 | DEBUG_INFO (psymtab) = debug_info; |
@@ -4654,7 +4631,7 @@ static struct linetable * | ||
4654 | 4631 | shrink_linetable (struct linetable *lt) |
4655 | 4632 | { |
4656 | 4633 | |
4657 | - return (struct linetable *) xrealloc ((PTR) lt, | |
4634 | + return (struct linetable *) xrealloc ((void *) lt, | |
4658 | 4635 | (sizeof (struct linetable) |
4659 | 4636 | + ((lt->nitems - 1) |
4660 | 4637 | * sizeof (lt->item)))); |
@@ -4698,7 +4675,7 @@ shrink_block (struct block *b, struct symtab *s) | ||
4698 | 4675 | |
4699 | 4676 | /* Just reallocate it and fix references to the old one */ |
4700 | 4677 | |
4701 | - new = (struct block *) xrealloc ((PTR) b, | |
4678 | + new = (struct block *) xrealloc ((void *) b, | |
4702 | 4679 | (sizeof (struct block) |
4703 | 4680 | + ((BLOCK_NSYMS (b) - 1) |
4704 | 4681 | * sizeof (struct symbol *)))); |
@@ -4724,7 +4701,7 @@ new_symbol (char *name) | ||
4724 | 4701 | obstack_alloc (¤t_objfile->symbol_obstack, |
4725 | 4702 | sizeof (struct symbol))); |
4726 | 4703 | |
4727 | - memset ((PTR) s, 0, sizeof (*s)); | |
4704 | + memset (s, 0, sizeof (*s)); | |
4728 | 4705 | SYMBOL_NAME (s) = obsavestring (name, strlen (name), |
4729 | 4706 | ¤t_objfile->symbol_obstack); |
4730 | 4707 | SYMBOL_LANGUAGE (s) = psymtab_language; |
@@ -75,16 +75,6 @@ static int msym_bunch_index; | ||
75 | 75 | |
76 | 76 | static int msym_count; |
77 | 77 | |
78 | -/* Prototypes for local functions. */ | |
79 | - | |
80 | -static int compare_minimal_symbols (const PTR, const PTR); | |
81 | - | |
82 | -static int | |
83 | -compact_minimal_symbols (struct minimal_symbol *, int, struct objfile *); | |
84 | - | |
85 | -static void add_minsym_to_demangled_hash_table (struct minimal_symbol *sym, | |
86 | - struct minimal_symbol **table); | |
87 | - | |
88 | 78 | /* Compute a hash code based using the same criteria as `strcmp_iw'. */ |
89 | 79 | |
90 | 80 | unsigned int |
@@ -688,7 +678,7 @@ prim_record_minimal_symbol_and_info (const char *name, CORE_ADDR address, | ||
688 | 678 | Within groups with the same address, sort by name. */ |
689 | 679 | |
690 | 680 | static int |
691 | -compare_minimal_symbols (const PTR fn1p, const PTR fn2p) | |
681 | +compare_minimal_symbols (const void *fn1p, const void *fn2p) | |
692 | 682 | { |
693 | 683 | register const struct minimal_symbol *fn1; |
694 | 684 | register const struct minimal_symbol *fn2; |
@@ -185,15 +185,13 @@ struct alphacoff_dynsecinfo | ||
185 | 185 | asection *got_sect; /* Section pointer for .got section */ |
186 | 186 | }; |
187 | 187 | |
188 | -static void alphacoff_locate_sections (bfd *, asection *, PTR); | |
189 | - | |
190 | 188 | /* We are called once per section from read_alphacoff_dynamic_symtab. |
191 | 189 | We need to examine each section we are passed, check to see |
192 | 190 | if it is something we are interested in processing, and |
193 | 191 | if so, stash away some access information for the section. */ |
194 | 192 | |
195 | 193 | static void |
196 | -alphacoff_locate_sections (bfd *ignore_abfd, asection *sectp, PTR sip) | |
194 | +alphacoff_locate_sections (bfd *ignore_abfd, asection *sectp, void *sip) | |
197 | 195 | { |
198 | 196 | register struct alphacoff_dynsecinfo *si; |
199 | 197 |
@@ -252,7 +250,7 @@ read_alphacoff_dynamic_symtab (struct section_offsets *section_offsets, | ||
252 | 250 | |
253 | 251 | /* Locate the dynamic symbols sections and read them in. */ |
254 | 252 | memset ((char *) &si, 0, sizeof (si)); |
255 | - bfd_map_over_sections (abfd, alphacoff_locate_sections, (PTR) & si); | |
253 | + bfd_map_over_sections (abfd, alphacoff_locate_sections, (void *) & si); | |
256 | 254 | if (si.sym_sect == NULL |
257 | 255 | || si.str_sect == NULL |
258 | 256 | || si.dyninfo_sect == NULL |
@@ -44,7 +44,7 @@ extern void simplified_command_loop (char *(*read_input_func) (char *), | ||
44 | 44 | extern int quit_confirm (void); |
45 | 45 | extern void quit_force (char *, int); |
46 | 46 | extern void quit_command (char *, int); |
47 | -extern int quit_cover (PTR); | |
47 | +extern int quit_cover (void *); | |
48 | 48 | extern void execute_command (char *, int); |
49 | 49 | |
50 | 50 | /* This function returns a pointer to the string that is used |