aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-07-13 01:12:11 +0000
committerFred Fish <fnf@specifix.com>1996-07-13 01:12:11 +0000
commitc0e6ae2e2e996bda783d6464b880e235c71727b8 (patch)
tree1a9d6e6fd86b76f275a678120207120339760b17 /gdb
parent10c9620d4e99fd04a637edbcbe9934c4672758b6 (diff)
downloadgdb-c0e6ae2e2e996bda783d6464b880e235c71727b8.zip
gdb-c0e6ae2e2e996bda783d6464b880e235c71727b8.tar.gz
gdb-c0e6ae2e2e996bda783d6464b880e235c71727b8.tar.bz2
* objfiles.c (map_to_file): Error return from mmalloc_findbase is
a NULL pointer, not a -1. Fix oops from a previous checkin.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/objfiles.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index da86e04..b0bbf5b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index 85f35cb..ceea859 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -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