* rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
authorFred Fish <fnf@specifix.com>
Thu, 1 Aug 1996 05:25:23 +0000 (05:25 +0000)
committerFred Fish <fnf@specifix.com>
Thu, 1 Aug 1996 05:25:23 +0000 (05:25 +0000)
(vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
(fetch_core_registers): Add prototype.
(vmap_symtab): Ditto.
(objfile_symbol_add): Ditto.
(add_vmap): Ditto.
(vmap_ldinfo): Ditto.
(vmap_exec): Ditto.

gdb/ChangeLog
gdb/rs6000-nat.c

index 315e42a0020cb961f567ef62b71132301b8ca38b..89c15d6cb5e087ec659a3e08596069a040227074 100644 (file)
@@ -1,3 +1,14 @@
+Wed Jul 31 20:21:24 1996  Fred Fish  <fnf@cygnus.com>
+
+       * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
+       (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
+       (fetch_core_registers): Add prototype.
+       (vmap_symtab): Ditto.
+       (objfile_symbol_add): Ditto.
+       (add_vmap): Ditto.
+       (vmap_ldinfo): Ditto.
+       (vmap_exec): Ditto.
+
 Tue Jul 30 17:57:46 1996  Stan Shebs  <shebs@andros.cygnus.com>
 
        * stabsread.c (get_substring): Declare second arg as int.
index 5772fe0ab3de001d965f4861e63e3a9eac239f0b..7aa42bda86ce90a331ad17fd874c209101749f7e 100644 (file)
@@ -51,6 +51,24 @@ extern struct vmap * map_vmap PARAMS ((bfd *bf, bfd *arch));
 
 extern struct target_ops exec_ops;
 
+static void
+vmap_exec PARAMS ((void));
+
+static void
+vmap_ldinfo PARAMS ((struct ld_info *));
+
+static struct vmap *
+add_vmap PARAMS ((struct ld_info *));
+
+static int
+objfile_symbol_add PARAMS ((char *));
+
+static void
+vmap_symtab PARAMS ((struct vmap *));
+
+static void
+fetch_core_registers PARAMS ((char *, unsigned int, int, unsigned int));
+
 static void
 exec_one_dummy_insn PARAMS ((void));
 
@@ -402,7 +420,7 @@ add_vmap (ldi)
          bfd_close (abfd);
          /* FIXME -- should be error */
          warning ("\"%s\": member \"%s\" missing.", abfd->filename, mem);
-         return;
+         return 0;
        }
 
       if (!bfd_check_format(last, bfd_object))
@@ -447,7 +465,7 @@ vmap_ldinfo (ldi)
   struct stat ii, vi;
   register struct vmap *vp;
   int got_one, retried;
-  int got_exec_file;
+  int got_exec_file = 0;
 
   /* For each *ldi, see if we have a corresponding *vp.
      If so, update the mapping, and symbol table.
This page took 0.027835 seconds and 4 git commands to generate.