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 | 2fc18c15d20c966ea7df140334e182753c3bde0e (patch) | |
tree | 44064fc123060e4d621b2df6aeefca8f40ca94c3 /gdb/objfiles.c | |
parent | 024094993c3579f62dab27d33e63668ec05400fd (diff) | |
download | gdb-2fc18c15d20c966ea7df140334e182753c3bde0e.zip gdb-2fc18c15d20c966ea7df140334e182753c3bde0e.tar.gz gdb-2fc18c15d20c966ea7df140334e182753c3bde0e.tar.bz2 |
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 ebcdcd4..bcd047c 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", |