Fixes http://golang.org/issue/6715.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204828
138bc75d-0d04-0410-961f-
82ee72b054a4
const char *filename;
filename = (const char *) runtime_progname ();
+
+ /* If there is no '/' in FILENAME, it was found on PATH, and
+ might not be the same as the file with the same name in the
+ current directory. */
+ if (__builtin_strchr (filename, '/') == NULL)
+ filename = NULL;
+
back_state = backtrace_create_state (filename, 1, error_callback, NULL);
}
runtime_unlock (&back_state_lock);