From ebd645e7e65aa46fc5e95fda0b47590f4331fc17 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 3 Oct 2001 03:49:26 +0000 Subject: * cygheap.cc (cfree): Remove malloc debugging probe. * dlmalloc.c (errprint): Remove abort() call which causes interesting error message printing to abort prematurely. * environ.cc: Sprinkle MALLOC_CHECKs liberally throughout. (_addenv): Allocate two empty elements at end of environ to (apparently) work around problems with some buggy applications. (winenv): Avoid calling alloca if no forced environment variable is present. * exceptions.cc (open_stackdumpfile): Don't print "Dumping stack trace to..." when running in a cygwin environment (i.e., the parent is a cygwin process). * dtable.cc (dtable::init_std_file_from_handle): Move device type detection code from build_fhandler here since it is only used by this function. (dtable::build_fhandler_from_name): New method. Renamed from dtable::build_fhandler. (dtable::build_fhandler): Use build_fhandler_from_name. (cygwin_attach_handle_to_fd): Ditto. * syscalls.cc (_open): Ditto. (stat_worker): Ditto. * dtable.h (dtable::build_fhandler_from_name): Rename declaration from dtable::build_fhandler. --- winsup/cygwin/dlmalloc.c | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/dlmalloc.c') diff --git a/winsup/cygwin/dlmalloc.c b/winsup/cygwin/dlmalloc.c index 3435950b4..de14fcb6a 100644 --- a/winsup/cygwin/dlmalloc.c +++ b/winsup/cygwin/dlmalloc.c @@ -28,6 +28,29 @@ * malloc_usable_size(P) is equivalent to realloc(P, malloc_usable_size(P)) * * $Log$ + * Revision 1.5 2001/10/03 03:49:25 cgf + * * cygheap.cc (cfree): Remove malloc debugging probe. + * * dlmalloc.c (errprint): Remove abort() call which causes interesting error + * message printing to abort prematurely. + * * environ.cc: Sprinkle MALLOC_CHECKs liberally throughout. + * (_addenv): Allocate two empty elements at end of environ to + * (apparently) work around problems with some buggy applications. + * (winenv): Avoid calling alloca if no forced environment variable is present. + * + * * exceptions.cc (open_stackdumpfile): Don't print "Dumping stack trace to..." + * when running in a cygwin environment (i.e., the parent is a cygwin process). + * + * * dtable.cc (dtable::init_std_file_from_handle): Move device type detection + * code from build_fhandler here since it is only used by this function. + * (dtable::build_fhandler_from_name): New method. Renamed from + * dtable::build_fhandler. + * (dtable::build_fhandler): Use build_fhandler_from_name. + * (cygwin_attach_handle_to_fd): Ditto. + * * syscalls.cc (_open): Ditto. + * (stat_worker): Ditto. + * * dtable.h (dtable::build_fhandler_from_name): Rename declaration from + * dtable::build_fhandler. + * * Revision 1.4 2001/09/07 21:32:04 cgf * * cygheap.h (init_cygheap): Move heap pointers here. * * include/sys/cygwin.h (perprocess): Remove heap pointers. @@ -1843,7 +1866,6 @@ static void errprint(const char *file, int line, const char *err) write(2, err, strlen(err)); write(2, "\n", 1); recurs--; - abort (); } static void malloc_err(const char *err, mchunkptr p) -- cgit v1.2.3