aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/cygheap.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-02-16 02:03:54 +0000
committerChristopher Faylor <me@cgf.cx>2004-02-16 02:03:54 +0000
commitb4f0009fe3c1a862f6cbdbab0693a32e2a3cf88c (patch)
treebcc1cff08e79958926cf1dbf65f607aa897597e6 /winsup/cygwin/cygheap.cc
parentcc9c680509923d1e442d3196e1728f9374552fd9 (diff)
downloadnewlib-b4f0009fe3c1a862f6cbdbab0693a32e2a3cf88c.zip
newlib-b4f0009fe3c1a862f6cbdbab0693a32e2a3cf88c.tar.gz
newlib-b4f0009fe3c1a862f6cbdbab0693a32e2a3cf88c.tar.bz2
* cygheap.cc (_csbrk): Report failing condition to stderr rather than strace.
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r--winsup/cygwin/cygheap.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc
index e9dc5d4..5da6fa6 100644
--- a/winsup/cygwin/cygheap.cc
+++ b/winsup/cygwin/cygheap.cc
@@ -205,7 +205,8 @@ _csbrk (int sbs)
/* nothing to do */;
else if (!VirtualAlloc (prebrk, (DWORD) sbs, MEM_COMMIT, PAGE_READWRITE))
{
- malloc_printf ("couldn't commit memory for cygwin heap, %E");
+ malloc_printf ("couldn't commit memory for cygwin heap, prebrk %p, size %d, heapsize now %d, max heap size %d, %E",
+ prebrk, sbs, (char *) cygheap_max - (char *) cygheap, CYGHEAPSIZE);
__seterrno ();
cygheap_max = (char *) cygheap_max - sbs;
return NULL;