* configure.in (--with-mmalloc): Add new configure arg to use the
mmalloc package. Default is to not use it. (START_INFERIOR_TRAPS_EXPECTED): Define to the integer 2, not the string "2". * acconfig.h (USE_MMALLOC, FORCE_MMCHECK): Add #undef. * configure: Regenerated. * config.in: Regenerated. * Makefile.in (MMALLOC_DIR, MMALLOC_SRC): Remove. (MMALLOC): Set using configure. (MMALLOC_CFLAGS): Set using configure. * config/i386/tm-linux.h (sys_quotactl): Define to 1 rather than just defining it. * mpw-make.sed: Undefine USE_MMALLOC rather than defining NO_MMALLOC. * utils.c (NO_MMALLOC): Use USE_MMALLOC instead. * objfiles.c: ditto. * defs.h: ditto. * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Remove. * config/m68k/sun3os4.mh (MMALLOC_CFLAGS): Remove. * config/i386/cygwin32.mh (MMALLOC_CFLAGS): Remove. * config/alpha/alpha-osf3.mh (MMALLOC_CFLAGS): Remove. * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Remove. * gdbserver/Makefile.in (MMALLOC_*): Remove. * config/rs6000/rs6000.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/rs6000/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/powerpc/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/powerpc/aix.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/ns32k/ns32km3.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/mips/mipsm3.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/mips/decstation.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/m88k/cxux.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/i386/xm-windows.h (NO_MMALLOC, NO_MMCHECK): Remove. * config/i386/i386mk.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/i386/i386m3.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/i386/i386gnu.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/alpha/alpha-osf1.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/alpha/alpha-linux.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
This commit is contained in:
parent
2a426d3136
commit
0728afad48
19 changed files with 251 additions and 177 deletions
|
@ -37,7 +37,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||
|
||||
/* Prototypes for local functions */
|
||||
|
||||
#if !defined(NO_MMALLOC) && defined(HAVE_MMAP)
|
||||
#if defined(USE_MMALLOC) && defined(HAVE_MMAP)
|
||||
|
||||
static int
|
||||
open_existing_mapped_file PARAMS ((char *, long, int));
|
||||
|
@ -48,7 +48,7 @@ open_mapped_file PARAMS ((char *filename, long mtime, int mapped));
|
|||
static PTR
|
||||
map_to_file PARAMS ((int));
|
||||
|
||||
#endif /* !defined(NO_MMALLOC) && defined(HAVE_MMAP) */
|
||||
#endif /* defined(USE_MMALLOC) && defined(HAVE_MMAP) */
|
||||
|
||||
static void
|
||||
add_to_objfile_sections PARAMS ((bfd *, sec_ptr, PTR));
|
||||
|
@ -129,7 +129,7 @@ allocate_objfile (abfd, mapped)
|
|||
|
||||
mapped |= mapped_symbol_files;
|
||||
|
||||
#if !defined(NO_MMALLOC) && defined(HAVE_MMAP)
|
||||
#if defined(USE_MMALLOC) && defined(HAVE_MMAP)
|
||||
if (abfd != NULL)
|
||||
{
|
||||
|
||||
|
@ -212,7 +212,7 @@ allocate_objfile (abfd, mapped)
|
|||
bfd_get_filename (abfd));
|
||||
}
|
||||
}
|
||||
#else /* defined(NO_MMALLOC) || !defined(HAVE_MMAP) */
|
||||
#else /* !defined(USE_MMALLOC) || !defined(HAVE_MMAP) */
|
||||
|
||||
if (mapped)
|
||||
{
|
||||
|
@ -225,7 +225,7 @@ allocate_objfile (abfd, mapped)
|
|||
mapped_symbol_files = 0;
|
||||
}
|
||||
|
||||
#endif /* !defined(NO_MMALLOC) && defined(HAVE_MMAP) */
|
||||
#endif /* defined(USE_MMALLOC) && defined(HAVE_MMAP) */
|
||||
|
||||
/* If we don't support mapped symbol files, didn't ask for the file to be
|
||||
mapped, or failed to open the mapped file for some reason, then revert
|
||||
|
@ -416,7 +416,7 @@ free_objfile (objfile)
|
|||
case. Note that the mmalloc_detach or the mfree is the last thing
|
||||
we can do with this objfile. */
|
||||
|
||||
#if !defined(NO_MMALLOC) && defined(HAVE_MMAP)
|
||||
#if defined(USE_MMALLOC) && defined(HAVE_MMAP)
|
||||
|
||||
if (objfile -> flags & OBJF_MAPPED)
|
||||
{
|
||||
|
@ -430,7 +430,7 @@ free_objfile (objfile)
|
|||
close (mmfd);
|
||||
}
|
||||
|
||||
#endif /* !defined(NO_MMALLOC) && defined(HAVE_MMAP) */
|
||||
#endif /* defined(USE_MMALLOC) && defined(HAVE_MMAP) */
|
||||
|
||||
/* If we still have an objfile, then either we don't support reusable
|
||||
objfiles or this one was not reusable. So free it normally. */
|
||||
|
@ -712,7 +712,7 @@ have_minimal_symbols ()
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if !defined(NO_MMALLOC) && defined(HAVE_MMAP)
|
||||
#if defined(USE_MMALLOC) && defined(HAVE_MMAP)
|
||||
|
||||
/* Given the name of a mapped symbol file in SYMSFILENAME, and the timestamp
|
||||
of the corresponding symbol file in MTIME, try to open an existing file
|
||||
|
@ -879,7 +879,7 @@ map_to_file (fd)
|
|||
return (md);
|
||||
}
|
||||
|
||||
#endif /* !defined(NO_MMALLOC) && defined(HAVE_MMAP) */
|
||||
#endif /* defined(USE_MMALLOC) && defined(HAVE_MMAP) */
|
||||
|
||||
/* Returns a section whose range includes PC and SECTION,
|
||||
or NULL if none found. Note the distinction between the return type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue