From 2fc18c15d20c966ea7df140334e182753c3bde0e Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 29 Feb 2000 12:58:51 +0000 Subject: [PATCH] From Peter Schauer - fix mmalloc bitrot. --- gdb/ChangeLog | 6 ++++++ gdb/objfiles.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e1626c21a79..907c3722c90 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Tue Feb 29 23:56:41 2000 Andrew Cagney + + From 2000-02-23 Peter Schauer : + * objfiles.c (open_mapped_file): Fix obsolete references to `mapped' + parameter. + Tue Feb 29 18:47:58 2000 Andrew Cagney From 2000-02-23 Eli Zaretskii : diff --git a/gdb/objfiles.c b/gdb/objfiles.c index ebcdcd49d12..bcd047c11ce 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -865,7 +865,7 @@ open_mapped_file (filename, mtime, flags) { free (symsfilename); symsfilename = concat (filename, ".syms", (char *) NULL); - fd = open_existing_mapped_file (symsfilename, mtime, mapped); + fd = open_existing_mapped_file (symsfilename, mtime, flags); } /* If we don't have an open file by now, then either the file does not @@ -877,7 +877,7 @@ open_mapped_file (filename, mtime, flags) By default the file is rw for everyone, with the user's umask taking care of turning off the permissions the user wants off. */ - if ((fd < 0) && mapped) + if ((fd < 0) && (flags & OBJF_MAPPED)) { free (symsfilename); symsfilename = concat ("./", basename (filename), ".syms", -- 2.30.2