Removed superflous code.
[deliverable/binutils-gdb.git] / gdb / somsolib.c
index 1a1042dfbb1e66faa8d03745bc8605562a3a9d7c..6c864af51a1832b3780ab8bcaeb27bb8e01a0da3 100644 (file)
@@ -34,7 +34,9 @@ and by Cygnus Support.  */
 #include "objfiles.h"
 #include "inferior.h"
 #include "gdb-stabs.h"
+#include "gdb_stat.h"
 #include "gdbcmd.h"
+#include "language.h"
 
 /* TODO:
 
@@ -96,6 +98,8 @@ static struct so_list *so_list_head;
 
 static void som_sharedlibrary_info_command PARAMS ((char *, int));
 
+static void som_solib_sharedlibrary_command PARAMS ((char *, int));
+
 /* Add symbols from shared libraries into the symtab list.  */
 
 void
@@ -497,7 +501,7 @@ som_solib_create_inferior_hook()
   struct minimal_symbol *msymbol;
   unsigned int dld_flags, status, have_endo;
   asection *shlib_info;
-  char shadow_contents[BREAKPOINT_MAX], buf[4];
+  char buf[4];
   struct objfile *objfile;
   CORE_ADDR anaddr;
 
@@ -520,13 +524,11 @@ som_solib_create_inferior_hook()
   have_endo = 0;
   /* If __d_pid is present, then put the inferior's pid into __d_pid.  hpux9
      requires __d_pid to be set.  hpux10 doesn't require __d_pid to be set
-     and the symbol may not be available.  */
+     and the symbol may not be available. 
+
+     Never warn about __d_pid.  */
   msymbol = lookup_minimal_symbol ("__d_pid", NULL, symfile_objfile);
-  if (msymbol == NULL)
-    {
-      warning ("Unable to find __d_pid symbol in object file.");
-    }
-  else
+  if (msymbol != NULL)
     {
       anaddr = SYMBOL_VALUE_ADDRESS (msymbol);
       store_unsigned_integer (buf, 4, inferior_pid);
@@ -575,7 +577,6 @@ som_solib_create_inferior_hook()
         export stub.  */
       ALL_OBJFILES (objfile)
        {
-         struct unwind_table_entry *u;
          extern struct unwind_table_entry *find_unwind_entry PARAMS ((CORE_ADDR pc));
 
          /* What a crock.  */
@@ -587,7 +588,7 @@ som_solib_create_inferior_hook()
            {
              struct unwind_table_entry *u;
              /* It must be a shared library trampoline.  */
-             if (SYMBOL_TYPE (msymbol) != mst_solib_trampoline)
+             if (MSYMBOL_TYPE (msymbol) != mst_solib_trampoline)
                continue;
 
              /* It must also be an export stub.  */
This page took 0.023646 seconds and 4 git commands to generate.