2000-07-03 Christopher Faylor <cgf@cygnus.com>
[deliverable/binutils-gdb.git] / gdb / cxux-nat.c
index 88a9b626d3d62fa97751940f98f30292e340d72b..93ed232770c067fd51c09b2cf660cba48aeff274 100644 (file)
@@ -281,6 +281,9 @@ m88k_register_u_addr (blockend, regnum)
 
 #include <sys/procfs.h>
 
+/* Prototypes for supply_gregset etc. */
+#include "gregset.h"
+
 /*  Given a pointer to a general register set in /proc format (gregset_t *),
    unpack the register contents and supply them as gdb's idea of the current
    register values. */
@@ -368,7 +371,7 @@ add_shared_symbol_files ()
       return;
     }
 
-  objfile = symbol_file_add (LIBC_FILE, 0, 0, 0, 0, 1, 0, 0);
+  objfile = symbol_file_add (LIBC_FILE, 0, NULL, 0, OBJF_READNOW);
   minsym = lookup_minimal_symbol (LINKS_MAP_POINTER, objfile);
 
   ld_map = (struct link_map *)
@@ -384,7 +387,11 @@ add_shared_symbol_files ()
          if (target_read_string ((CORE_ADDR) lms.l_name, &path_name,
                                  PATH_MAX, &local_errno))
            {
-             symbol_file_add (path_name, 1, lms.l_addr, 0, 0, 0, 0, 0);
+             struct section_addr_info section_addrs;
+             memset (&section_addrs, 0, sizeof (section_addrs));
+             section_addrs.other[0].addr = lms.l_addr;
+              section_addrs.other[0].name = ".text";
+             symbol_file_add (path_name, 1, &section_addrs, 0, 0);
              free (path_name);
            }
        }
This page took 0.023976 seconds and 4 git commands to generate.