From 2da42df615c0489291f8d3e1ce873642755a49c6 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 14 Sep 2003 12:20:17 +0000 Subject: * addr2line.c: Convert to ISO C90 prototypes, change PTR, remove unneeded (void *) casts. * ar.c: Likewise. * arlex.l: Likewise. * arparse.y: Likewise. * arsup.c: Likewise. * binemul.c: Likewise. * binemul.h: Likewise. * bucomm.c: Likewise. * bucomm.h: Likewise. * budbg.h: Likewise. * budemang.c: Likewise. * budemang.h: Likewise. * coffdump.c: Likewise. * coffgrok.c: Likewise. * cxxfilt.c: Likewise. * debug.c: Likewise. * debug.h: Likewise. * deflex.l: Likewise. * dlltool.c: Likewise. * dlltool.h: Likewise. * dllwrap.c: Likewise. * emul_aix.c: Likewise. * filemode.c: Likewise. * ieee.c: Likewise. * nlmconv.c: Likewise. * nlmconv.h: Likewise. * nlmheader.y: Likewise. * nm.c: Likewise. * prdbg.c: Likewise. * rclex.l: Likewise. * rcparse.y: Likewise. * rdcoff.c: Likewise. * rddbg.c: Likewise. * rename.c: Likewise. * resbin.c: Likewise. * rescoff.c: Likewise. * resrc.c: Likewise. * size.c: Likewise. * srconv.c: Likewise. * stabs.c: Likewise. * strings.c: Likewise. * sysdump.c: Likewise. * sysinfo.y: Likewise. * syslex.l: Likewise. * unwind-ia64.c: Likewise. * unwind-ia64.h: Likewise. * version.c: Likewise. * windres.c: Likewise. * windres.h: Likewise. * winduni.c: Likewise. * wrstabs.c: Likewise. --- binutils/rddbg.c | 63 +++++++++++++++++++------------------------------------- 1 file changed, 21 insertions(+), 42 deletions(-) (limited to 'binutils/rddbg.c') diff --git a/binutils/rddbg.c b/binutils/rddbg.c index 2f6ec6e..75ddab5 100644 --- a/binutils/rddbg.c +++ b/binutils/rddbg.c @@ -1,5 +1,6 @@ /* rddbg.c -- Read debugging information into a generic form. - Copyright 1995, 1996, 1997, 2000, 2002 Free Software Foundation, Inc. + Copyright 1995, 1996, 1997, 2000, 2002, 2003 + Free Software Foundation, Inc. Written by Ian Lance Taylor . This file is part of GNU Binutils. @@ -30,28 +31,21 @@ #include "budbg.h" static bfd_boolean read_section_stabs_debugging_info - PARAMS ((bfd *, asymbol **, long, PTR, bfd_boolean *)); + (bfd *, asymbol **, long, void *, bfd_boolean *); static bfd_boolean read_symbol_stabs_debugging_info - PARAMS ((bfd *, asymbol **, long, PTR, bfd_boolean *)); -static bfd_boolean read_ieee_debugging_info - PARAMS ((bfd *, PTR, bfd_boolean *)); -static void save_stab - PARAMS ((int, int, bfd_vma, const char *)); -static void stab_context - PARAMS ((void)); -static void free_saved_stabs - PARAMS ((void)); + (bfd *, asymbol **, long, void *, bfd_boolean *); +static bfd_boolean read_ieee_debugging_info (bfd *, void *, bfd_boolean *); +static void save_stab (int, int, bfd_vma, const char *); +static void stab_context (void); +static void free_saved_stabs (void); /* Read debugging information from a BFD. Returns a generic debugging pointer. */ -PTR -read_debugging_info (abfd, syms, symcount) - bfd *abfd; - asymbol **syms; - long symcount; +void * +read_debugging_info (bfd *abfd, asymbol **syms, long symcount) { - PTR dhandle; + void *dhandle; bfd_boolean found; dhandle = debug_init (); @@ -99,12 +93,8 @@ read_debugging_info (abfd, syms, symcount) /* Read stabs in sections debugging information from a BFD. */ static bfd_boolean -read_section_stabs_debugging_info (abfd, syms, symcount, dhandle, pfound) - bfd *abfd; - asymbol **syms; - long symcount; - PTR dhandle; - bfd_boolean *pfound; +read_section_stabs_debugging_info (bfd *abfd, asymbol **syms, long symcount, + void *dhandle, bfd_boolean *pfound) { static struct { @@ -113,7 +103,7 @@ read_section_stabs_debugging_info (abfd, syms, symcount, dhandle, pfound) } names[] = { { ".stab", ".stabstr" }, { "LC_SYMTAB.stabs", "LC_SYMTAB.stabstr" } }; unsigned int i; - PTR shandle; + void *shandle; *pfound = FALSE; shandle = NULL; @@ -261,14 +251,10 @@ read_section_stabs_debugging_info (abfd, syms, symcount, dhandle, pfound) /* Read stabs in the symbol table. */ static bfd_boolean -read_symbol_stabs_debugging_info (abfd, syms, symcount, dhandle, pfound) - bfd *abfd; - asymbol **syms; - long symcount; - PTR dhandle; - bfd_boolean *pfound; +read_symbol_stabs_debugging_info (bfd *abfd, asymbol **syms, long symcount, + void *dhandle, bfd_boolean *pfound) { - PTR shandle; + void *shandle; asymbol **ps, **symend; shandle = NULL; @@ -341,10 +327,7 @@ read_symbol_stabs_debugging_info (abfd, syms, symcount, dhandle, pfound) /* Read IEEE debugging information. */ static bfd_boolean -read_ieee_debugging_info (abfd, dhandle, pfound) - bfd *abfd; - PTR dhandle; - bfd_boolean *pfound; +read_ieee_debugging_info (bfd *abfd, void *dhandle, bfd_boolean *pfound) { asection *dsec; bfd_size_type size; @@ -390,11 +373,7 @@ static int saved_stabs_index; /* Save a stabs string. */ static void -save_stab (type, desc, value, string) - int type; - int desc; - bfd_vma value; - const char *string; +save_stab (int type, int desc, bfd_vma value, const char *string) { if (saved_stabs[saved_stabs_index].string != NULL) free (saved_stabs[saved_stabs_index].string); @@ -408,7 +387,7 @@ save_stab (type, desc, value, string) /* Provide context for an error. */ static void -stab_context () +stab_context (void) { int i; @@ -446,7 +425,7 @@ stab_context () /* Free the saved stab strings. */ static void -free_saved_stabs () +free_saved_stabs (void) { int i; -- cgit v1.1