aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-07-22 18:25:52 +0000
committerChristopher Faylor <me@cgf.cx>2004-07-22 18:25:52 +0000
commit5b7534fec397b69bce65bef12789e49d98bf0f47 (patch)
tree43f5472626121db8fe974575ba94bb5f602823d3
parent0da793ff2b41776aa3b683eb952c0df5bbfaba0a (diff)
downloadnewlib-5b7534fec397b69bce65bef12789e49d98bf0f47.zip
newlib-5b7534fec397b69bce65bef12789e49d98bf0f47.tar.gz
newlib-5b7534fec397b69bce65bef12789e49d98bf0f47.tar.bz2
* pinfo.cc (pinfo::init): Print handle in hex when MapViewOfFile fails.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/pinfo.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 3c4c4fc..d629ad0 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2004-07-22 Christopher Faylor <cgf@timesys.com>
+
+ * pinfo.cc (pinfo::init): Print handle in hex when MapViewOfFile fails.
+
2004-07-20 Corinna Vinschen <corinna@vinschen.de>
* shm.cc: Whitespace fixes.
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index f3a9175..dcbdf27 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -194,7 +194,7 @@ pinfo::init (pid_t n, DWORD flag, HANDLE in_h)
procinfo = (_pinfo *) MapViewOfFileEx (h, access, 0, 0, 0, mapaddr);
if (!procinfo)
- api_fatal ("MapViewOfFileEx failed, %E");
+ api_fatal ("MapViewOfFileEx(%p) failed, %E", h);
ProtectHandle1 (h, pinfo_shared_handle);
if ((procinfo->process_state & PID_INITIALIZING) && (flag & PID_NOREDIR)