aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/exceptions.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-05-11 05:11:12 +0000
committerChristopher Faylor <me@cgf.cx>2001-05-11 05:11:12 +0000
commit5bba0cb5a346fb1f16caa2ca30c71a2a17a569da (patch)
tree89bd33e4202e04ed68ba35590c7d9b640a347b35 /winsup/cygwin/exceptions.cc
parent723190cf7131e1655aab478bd4d15d75516df496 (diff)
downloadnewlib-5bba0cb5a346fb1f16caa2ca30c71a2a17a569da.zip
newlib-5bba0cb5a346fb1f16caa2ca30c71a2a17a569da.tar.gz
newlib-5bba0cb5a346fb1f16caa2ca30c71a2a17a569da.tar.bz2
* exceptions.cc (handle_exceptions): Don't print message when executing from a
cygwin program.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index 6c35f39..3ddc283 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -358,7 +358,6 @@ try_to_debug (bool waitloop)
{
if (strncmp (p, "CYGWIN=", sizeof ("CYGWIN=") - 1) == 0)
{
- system_printf ("%s", p);
char* q = strstr (p, "error_start") ;
/* replace 'error_start=...' with '_rror_start=...' */
if (q) *q = '_' ;
@@ -502,7 +501,8 @@ handle_exceptions (EXCEPTION_RECORD *e, void *, CONTEXT *in, void *)
{
if (status_info[i].code == e->ExceptionCode)
{
- system_printf ("Exception: %s", status_info[i].name);
+ if (!myself->ppid_handle)
+ system_printf ("Exception: %s", status_info[i].name);
break;
}
}