mirror of
https://github.com/golang/go
synced 2024-11-22 03:44:39 -07:00
cmd/ld: fix gdbscript
R=golang-dev, lvd CC=golang-dev https://golang.org/cl/5601058
This commit is contained in:
parent
1677f1a163
commit
f8e9bbe475
@ -1601,7 +1601,7 @@ finddebugruntimepath(void)
|
|||||||
char *c;
|
char *c;
|
||||||
|
|
||||||
for (i = 1; i < histfilesize; i++) {
|
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];
|
l = c - histfile[i];
|
||||||
memmove(gdbscript, histfile[i], l);
|
memmove(gdbscript, histfile[i], l);
|
||||||
memmove(gdbscript + l, "runtime/runtime-gdb.py", strlen("runtime/runtime-gdb.py") + 1);
|
memmove(gdbscript + l, "runtime/runtime-gdb.py", strlen("runtime/runtime-gdb.py") + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user