]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* objfiles.c (map_to_file): Error return from mmalloc_findbase is
authorFred Fish <fnf@specifix.com>
Sat, 13 Jul 1996 01:12:11 +0000 (01:12 +0000)
committerFred Fish <fnf@specifix.com>
Sat, 13 Jul 1996 01:12:11 +0000 (01:12 +0000)
a NULL pointer, not a -1.
Fix oops from a previous checkin.

gdb/ChangeLog
gdb/objfiles.c

index da86e04f5d33b1a4addaa1aba1530b1d95970ea8..b0bbf5b7b3e3a595956d27f80c7ab0c429058e6d 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jul 12 17:59:47 1996  Fred Fish  <fnf@ninemoons.com>
+
+       * objfiles.c (map_to_file): Error return from mmalloc_findbase is
+       a NULL pointer, not a -1.
+
 Fri Jul 12 10:16:24 1996  Stu Grossman  (grossman@critters.cygnus.com)
 
        * i386-tdep.c (set_assembly_language_command):  New routine to
index 85f35cb819c12dde0f426ebfe5060d261fbb19fd..ceea859a06d174c3709b9a981acc43f4d7a07bb4 100644 (file)
@@ -898,7 +898,7 @@ map_to_file (fd)
        {
          /* This is a freshly created mapping file. */
          mapto = (CORE_ADDR) mmalloc_findbase (20 * 1024 * 1024);
-         if (mapto != -1)
+         if (mapto != NULL)
            {
              /* To avoid reusing the freshly created mapping file, at the 
                 address selected by mmap, we must truncate it before trying