* 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.
This commit is contained in:
Corinna Vinschen
2010-08-18 14:22:07 +00:00
parent d15ed91c04
commit 75a3b85877
3 changed files with 16 additions and 13 deletions

View File

@@ -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 */