]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/ld: fix gdbscript
authorWei Guangjing <vcc.163@gmail.com>
Tue, 31 Jan 2012 15:32:24 +0000 (10:32 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 31 Jan 2012 15:32:24 +0000 (10:32 -0500)
R=golang-dev, lvd
CC=golang-dev
https://golang.org/cl/5601058

src/cmd/ld/dwarf.c

index d0ecabf8acd94b1d7f0d58b0af16e474714b9f2a..dfd8797ae351ba3f6944fc175883168b8b992fce 100644 (file)
@@ -1601,7 +1601,7 @@ finddebugruntimepath(void)
        char *c;
 
        for (i = 1; i < histfilesize; i++) {
-               if ((c = strstr(histfile[i], "runtime/runtime_defs.go")) != nil) {
+               if ((c = strstr(histfile[i], "runtime/zruntime_defs")) != nil) {
                        l = c - histfile[i];
                        memmove(gdbscript, histfile[i], l);
                        memmove(gdbscript + l, "runtime/runtime-gdb.py", strlen("runtime/runtime-gdb.py") + 1);