Commit f8e9bbe4 authored by Wei Guangjing's avatar Wei Guangjing Committed by Russ Cox

cmd/ld: fix gdbscript

R=golang-dev, lvd
CC=golang-dev
https://golang.org/cl/5601058
parent 1677f1a1
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment