* solib.c (solib_map_sections): Copy full path name into so_list
authorKung Hsu <kung@cygnus>
Fri, 8 Sep 1995 20:00:56 +0000 (20:00 +0000)
committerKung Hsu <kung@cygnus>
Fri, 8 Sep 1995 20:00:56 +0000 (20:00 +0000)
structure so that symbol_file_add can find it.

gdb/ChangeLog
gdb/solib.c

index e4a16ce8ccf378b135cac398688cad1c9b06063e..473ffbdcaddda99e54f2044b7b913e0d9b479c30 100644 (file)
@@ -1,3 +1,24 @@
+Fri Sep  8 12:57:41 1995  Kung Hsu  <kung@mexican.cygnus.com>
+
+       * solib.c (solib_map_sections): Copy full path name into so_list
+       structure so that symbol_file_add can find it.
+
+Tue Sep  5 17:47:53 1995  Doug Evans  <dje@canuck.cygnus.com>
+
+       * config/sparc/tm-sp64.h (REGISTER_RAW_SIZE): Lower 32 fp regs
+       have size 4.
+       (REGISTER_VIRTUAL_SIZE): Likewise.
+       (REGISTER_VIRTUAL_TYPE): Lower 32 fp regs have type float.
+       Upper 32 fp regs have type double.
+       * sparc-tdep.c (NUM_SPARC_FPREGS): Replace with
+       (FP_REGISTER_BYTES): this, and update all uses.
+       (FP_MAX_REGNUM): Define if not already.
+       (get_saved_register): Handle new sparc64 fp regs.
+       (sparc_frame_find_saved_regs): Likewise.
+       (sparc_print_register_hook): Only print fp regs < 32 as doubles.
+       Add code to handle long doubles when gdb does.
+       (_initialize_sparc_tdep): Use print_insn_sparc64 if sparc64.
+
 Sat Sep  2 06:41:26 1995  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
 
        * configure.in:  Explicitly `exit 0' for broken shells.
index d44156d1866b65e45904bfe172f6514c5e2fa222..89d7e7d2701727ec57f392aeb4327c7213c34975 100644 (file)
@@ -16,7 +16,7 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 
 #include "defs.h"
@@ -50,7 +50,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "language.h"
 #include "gdbcmd.h"
 
-#define MAX_PATH_SIZE 256              /* FIXME: Should be dynamic */
+#define MAX_PATH_SIZE 512              /* FIXME: Should be dynamic */
 
 /* On SVR4 systems, for the initial implementation, use some runtime startup
    symbol as the "startup mapping complete" breakpoint address.  The models
@@ -262,6 +262,12 @@ solib_map_sections (so)
   so -> abfd = abfd;
   abfd -> cacheable = true;
 
+  /* copy full path name into so_name, so that later symbol_file_add can find
+     it */
+  if (strlen (scratch_pathname) >= MAX_PATH_SIZE)
+    error ("Full path name length of shared library exceeds MAX_PATH_SIZE in so_list structure.");
+  strcpy (so->so_name, scratch_pathname);
+
   if (!bfd_check_format (abfd, bfd_object))
     {
       error ("\"%s\": not in executable format: %s.",
@@ -942,15 +948,15 @@ symbol_add_stub (arg)
 static int match_main (soname)
     char *soname;
 {
-char **mainp;
+  char **mainp;
 
-for (mainp = main_name_list; *mainp != NULL; mainp++)
-  {
-    if (strcmp (soname, *mainp) == 0)
+  for (mainp = main_name_list; *mainp != NULL; mainp++)
+    {
+      if (strcmp (soname, *mainp) == 0)
        return (1);
-  }
+    }
 
-return (0);
+  return (0);
 }
 
 /*
This page took 0.029402 seconds and 4 git commands to generate.