diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-02-29 12:58:51 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-02-29 12:58:51 +0000 |
commit | 6ad4abf27320ebeb5e17f12c127198f374bc9557 (patch) | |
tree | 55158fbf35315eda57a00130b12e97b069764aa9 /gdb/objfiles.c | |
parent | 3fd02d9b7afce9bb2f7f6d2fd123c5de2aaf2e03 (diff) | |
download | gdb-6ad4abf27320ebeb5e17f12c127198f374bc9557.tar.gz |
From Peter Schauer - fix mmalloc bitrot.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 4 |
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", |