summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/exceptions.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-08-18 14:22:07 +0000
committerCorinna Vinschen <corinna@vinschen.de>2010-08-18 14:22:07 +0000
commit75a3b85877941516c8430603f876019b916a6240 (patch)
treed03fe18d97da98508b346ddf13ffa08c5cc97405 /winsup/cygwin/exceptions.cc
parentd15ed91c04e3499de636b33ab59443049b94a815 (diff)
downloadcygnal-75a3b85877941516c8430603f876019b916a6240.tar.gz
cygnal-75a3b85877941516c8430603f876019b916a6240.tar.bz2
cygnal-75a3b85877941516c8430603f876019b916a6240.zip
* exceptions.cc (open_stackdumpfile): Don't try to open file if we
have no filesystem based CWD. Add comment. * path.cc (cwdstuff::set): Set CWD handle to NULL if CWD is a virtual path. Simplify matching comment.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index a2afa5e0f..e904ff188 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -128,7 +128,10 @@ error_start_init (const char *buf)
static void
open_stackdumpfile ()
{
- if (myself->progname[0])
+ /* If we have no executable name, or if the CWD handle is NULL,
+ which means, the CWD is a virtual path, don't even try to open
+ a stackdump file. */
+ if (myself->progname[0] && cygheap->cwd.get_handle ())
{
const WCHAR *p;
/* write to progname.stackdump if possible */