Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-01-20 22:36:35 +0300
committerChristopher Faylor <me@cgf.cx>2004-01-20 22:36:35 +0300
commit67fcf127c1f23d4fd5f630e72ad8304dc53b7095 (patch)
tree57077489fe3a07b7b585b268c37e31252023643e /winsup/cygwin/dlmalloc.c
parent69c7680cf75d6fe6059373220d8dcfd6e043a577 (diff)
* include/cygwin/version.h: Bump DLL minor number to 8.
* cygmalloc.h: Make more concessions to attempts to get debugging malloc working. * debug.h: Ditto. * dlmalloc.cc: Ditto. * dlmalloc.h: Ditto. * malloc_wrapper.cc: Ditto. * perthread.h (perthread::create): Use calloc to ensure zeroed memory.
Diffstat (limited to 'winsup/cygwin/dlmalloc.c')
-rw-r--r--winsup/cygwin/dlmalloc.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/winsup/cygwin/dlmalloc.c b/winsup/cygwin/dlmalloc.c
index a79a72513..3d9fafbb9 100644
--- a/winsup/cygwin/dlmalloc.c
+++ b/winsup/cygwin/dlmalloc.c
@@ -28,6 +28,16 @@
* malloc_usable_size(P) is equivalent to realloc(P, malloc_usable_size(P))
*
* $Log$
+ * Revision 1.8 2004/01/20 19:36:34 cgf
+ * * include/cygwin/version.h: Bump DLL minor number to 8.
+ * * cygmalloc.h: Make more concessions to attempts to get debugging malloc
+ * working.
+ * * debug.h: Ditto.
+ * * dlmalloc.cc: Ditto.
+ * * dlmalloc.h: Ditto.
+ * * malloc_wrapper.cc: Ditto.
+ * * perthread.h (perthread::create): Use calloc to ensure zeroed memory.
+ *
* Revision 1.7 2003/09/25 00:37:16 cgf
* * devices.cc: New file.
* * devices.gperf: New file.
@@ -533,7 +543,6 @@
/* Preliminaries */
-#include "winsup.h"
#ifndef __STD_C
#ifdef __STDC__
@@ -567,8 +576,11 @@
extern "C" {
#endif
+#include <sys/types.h>
+#include "cygmalloc.h"
+#define __INSIDE_CYGWIN__
#include <stdio.h> /* needed for malloc_stats */
-
+#include <string.h>
/*
Compile-time options
@@ -2098,9 +2110,7 @@ static void malloc_err(const char *err, mchunkptr p)
/* avoid invalid pointers */
debug_file_min &&
p->file >= debug_file_min &&
- p->file <= debug_file_max &&
- /* try to avoid garbage file names */
- isprint(*p->file))
+ p->file <= debug_file_max)
errprint(p->file, p->line, "in block allocated here");
# endif
}