summaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-02-29 12:58:51 +0000
committerAndrew Cagney <cagney@redhat.com>2000-02-29 12:58:51 +0000
commit6ad4abf27320ebeb5e17f12c127198f374bc9557 (patch)
tree55158fbf35315eda57a00130b12e97b069764aa9 /gdb/objfiles.c
parent3fd02d9b7afce9bb2f7f6d2fd123c5de2aaf2e03 (diff)
downloadgdb-6ad4abf27320ebeb5e17f12c127198f374bc9557.tar.gz
From Peter Schauer - fix mmalloc bitrot.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c4
1 files changed, 2 insertions, 2 deletions
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",