runtime: Don't use filename without '/' for backtrace library.

Fixes http://golang.org/issue/6715.

R=iant
CC=gofrontend-dev
https://golang.org/cl/26440044
diff --git a/libgo/runtime/go-caller.c b/libgo/runtime/go-caller.c
index 8ca3c7e..c49704d 100644
--- a/libgo/runtime/go-caller.c
+++ b/libgo/runtime/go-caller.c
@@ -101,6 +101,13 @@
       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);