This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem with gdb/objfiles.c and --with-mmalloc + fix


I have used --with-mmalloc with GDB configure for a long time to get sort of
a poor man's purify. Unfortunately gdb/objfiles.c suffered some bitrot
during the last year, here is a fix:


2000-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>

	* objfiles.c (open_mapped_file):  Fix obsolete references to `mapped'
	parameter.


*** ./gdb/objfiles.c.orig	Tue Dec  7 04:56:03 1999
--- ./gdb/objfiles.c	Thu Feb 17 10:56:51 2000
***************
*** 865,871 ****
      {
        free (symsfilename);
        symsfilename = concat (filename, ".syms", (char *) NULL);
!       fd = open_existing_mapped_file (symsfilename, mtime, mapped);
      }
  
    /* If we don't have an open file by now, then either the file does not
--- 865,871 ----
      {
        free (symsfilename);
        symsfilename = concat (filename, ".syms", (char *) NULL);
!       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,883 ****
       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)
      {
        free (symsfilename);
        symsfilename = concat ("./", basename (filename), ".syms",
--- 877,883 ----
       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) && (flags & OBJF_MAPPED))
      {
        free (symsfilename);
        symsfilename = concat ("./", basename (filename), ".syms",

-- 
Peter Schauer			pes@regent.e-technik.tu-muenchen.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]