2004-03-15 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Mon, 15 Mar 2004 20:32:54 +0000 (20:32 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 15 Mar 2004 20:32:54 +0000 (20:32 +0000)
* cris-tdep.c (bfd_lookup_symbol): Delete unused function.

gdb/ChangeLog
gdb/cris-tdep.c

index 42351545f3fb0b57d3e8c3d5498aba274f4c3545..688c02c84dd5c7240e4304a5731b86afc823916c 100644 (file)
@@ -1,3 +1,7 @@
+2004-03-15  Andrew Cagney  <cagney@redhat.com>
+
+       * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
+
 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
 
        * Makefile.in (frv-linux-tdep.o): Add dependencies.
index 5ac40b0255308812d1ac11a34f921dc93f434102..0ebfedac8655e2f707f818a3e682692b0c1e3dc5 100644 (file)
@@ -351,8 +351,6 @@ static void cris_version_update (char *ignore_args, int from_tty,
 static void cris_mode_update (char *ignore_args, int from_tty, 
                               struct cmd_list_element *c);
 
-static CORE_ADDR bfd_lookup_symbol (bfd *, const char *);
-
 static CORE_ADDR cris_scan_prologue (CORE_ADDR pc, 
                                     struct frame_info *next_frame,
                                     struct cris_unwind_cache *info);
@@ -3720,42 +3718,6 @@ cris_mode_update (char *ignore_args, int from_tty,
     }
 }
 
-/* Copied from pa64solib.c, with a couple of minor changes.  */
-
-static CORE_ADDR
-bfd_lookup_symbol (bfd *abfd, const char *symname)
-{
-  unsigned int storage_needed;
-  asymbol *sym;
-  asymbol **symbol_table;
-  unsigned int number_of_symbols;
-  unsigned int i;
-  struct cleanup *back_to;
-  CORE_ADDR symaddr = 0;
-
-  storage_needed = bfd_get_symtab_upper_bound (abfd);
-
-  if (storage_needed > 0)
-    {
-      symbol_table = (asymbol **) xmalloc (storage_needed);
-      back_to = make_cleanup (free, symbol_table);
-      number_of_symbols = bfd_canonicalize_symtab (abfd, symbol_table);
-
-      for (i = 0; i < number_of_symbols; i++)
-       {
-         sym = *symbol_table++;
-         if (!strcmp (sym->name, symname))
-           {
-             /* Bfd symbols are section relative.  */
-             symaddr = sym->value + sym->section->vma;
-             break;
-           }
-       }
-      do_cleanups (back_to);
-    }
-  return (symaddr);
-}
-
 static struct gdbarch *
 cris_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 {
This page took 0.03149 seconds and 4 git commands to generate.