From cf5b2f1b3af009aaa4b9af2dd5e70f4754c5da00 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 17 Jan 2004 01:05:06 +0000 Subject: [PATCH] 2004-01-16 Andrew Cagney * symfile.c: Update copyright year. (compare_symbols): Delete unused function. * stabsread.c: Update copyright year. (lrs_general_complaint): Delete unused function. (ref_search_value): Ditto. (get_substring): Delete declaration. * sh64-tdep.c: Update copyright year. (sh64_get_gdb_regnum): Delete unused function. * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint): Delete unused function. --- gdb/ChangeLog | 13 +++++++++++++ gdb/dwarf2read.c | 7 ------- gdb/sh64-tdep.c | 11 +++-------- gdb/stabsread.c | 25 ++++--------------------- gdb/symfile.c | 16 +--------------- 5 files changed, 21 insertions(+), 51 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 60ecee6bc09..b6c8203ec1f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,16 @@ +2004-01-16 Andrew Cagney + + * symfile.c: Update copyright year. + (compare_symbols): Delete unused function. + * stabsread.c: Update copyright year. + (lrs_general_complaint): Delete unused function. + (ref_search_value): Ditto. + (get_substring): Delete declaration. + * sh64-tdep.c: Update copyright year. + (sh64_get_gdb_regnum): Delete unused function. + * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint): + Delete unused function. + 2004-01-17 Mark Kettenis * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index b2c34a5d9ab..6604cf9fa0c 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -611,13 +611,6 @@ dwarf2_complex_location_expr_complaint (void) complaint (&symfile_complaints, "location expression too complex"); } -static void -dwarf2_unsupported_at_frame_base_complaint (const char *arg1) -{ - complaint (&symfile_complaints, - "unsupported DW_AT_frame_base for function '%s'", arg1); -} - static void dwarf2_const_value_length_mismatch_complaint (const char *arg1, int arg2, int arg3) diff --git a/gdb/sh64-tdep.c b/gdb/sh64-tdep.c index 218c09b32e8..f871d1e6e76 100644 --- a/gdb/sh64-tdep.c +++ b/gdb/sh64-tdep.c @@ -1,6 +1,7 @@ /* Target-dependent code for Renesas Super-H, for GDB. - Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 - Free Software Foundation, Inc. + + Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, + 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of GDB. @@ -830,12 +831,6 @@ is_media_pseudo (int rn) return (rn >= DR0_REGNUM && rn <= FV_LAST_REGNUM); } -static int -sh64_get_gdb_regnum (int gcc_regnum, CORE_ADDR pc) -{ - return translate_insn_rn (gcc_regnum, pc_is_isa32 (pc)); -} - static int sh64_media_reg_base_num (int reg_nr) { diff --git a/gdb/stabsread.c b/gdb/stabsread.c index d84d05e7305..0e615cb83e6 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -1,7 +1,8 @@ /* Support routines for decoding "stabs" debugging information format. - Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, - 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 - Free Software Foundation, Inc. + + Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, + 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free + Software Foundation, Inc. This file is part of GDB. @@ -89,8 +90,6 @@ static void read_one_struct_field (struct field_info *, char **, char *, struct type *, struct objfile *); -static char *get_substring (char **, int); - static struct type *dbx_alloc_type (int[2], struct objfile *); static long read_huge_number (char **, int, int *); @@ -194,12 +193,6 @@ stabs_general_complaint (const char *arg1) complaint (&symfile_complaints, "%s", arg1); } -static void -lrs_general_complaint (const char *arg1) -{ - complaint (&symfile_complaints, "%s", arg1); -} - /* Make a list of forward references which haven't been defined. */ static struct type **undef_types; @@ -533,16 +526,6 @@ ref_search (int refnum) return ref_map[refnum].sym; } -/* Return value for the reference REFNUM. */ - -static CORE_ADDR -ref_search_value (int refnum) -{ - if (refnum < 0 || refnum > ref_count) - return 0; - return ref_map[refnum].value; -} - /* Parse a reference id in STRING and return the resulting reference number. Move STRING beyond the reference id. */ diff --git a/gdb/symfile.c b/gdb/symfile.c index e94000321a6..430cf2dbd2c 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1,7 +1,7 @@ /* Generic symbol file reading for the GNU debugger, GDB. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. + 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. Contributed by Cygnus Support, using pieces from other GDB modules. @@ -199,20 +199,6 @@ int auto_solib_add = 1; int auto_solib_limit; -/* Since this function is called from within qsort, in an ANSI environment - it must conform to the prototype for qsort, which specifies that the - comparison function takes two "void *" pointers. */ - -static int -compare_symbols (const void *s1p, const void *s2p) -{ - struct symbol **s1, **s2; - - s1 = (struct symbol **) s1p; - s2 = (struct symbol **) s2p; - return (strcmp (SYMBOL_NATURAL_NAME (*s1), SYMBOL_NATURAL_NAME (*s2))); -} - /* This compares two partial symbols by names, using strcmp_iw_ordered for the comparison. */