37
39
gobuf->pc = gobuf->pc + 2 + *(int8*)(pc+1);
41
// This is a breakpoint inserted by gdb. We could use
42
// runtime·findfunc to find the function. But if we
43
// do that, then we will continue execution at the
44
// function entry point, and we will not hit the gdb
45
// breakpoint. So for this case we don't change
46
// gobuf->pc, so that when we return we will execute
47
// the jump instruction and carry on. This means that
48
// stack unwinding may not work entirely correctly
49
// (http://golang.org/issue/5723) but the user is
50
// running under gdb anyhow.
43
// This is a breakpoint inserted by gdb. We could use
44
// runtime·findfunc to find the function. But if we
45
// do that, then we will continue execution at the
46
// function entry point, and we will not hit the gdb
47
// breakpoint. So for this case we don't change
48
// gobuf->pc, so that when we return we will execute
49
// the jump instruction and carry on. This means that
50
// stack unwinding may not work entirely correctly
51
// (http://golang.org/issue/5723) but the user is
52
// running under gdb anyhow.
53
55
runtime·printf("runtime: pc=%p %x %x %x %x %x\n", pc, pc[0], pc[1], pc[2], pc[3], pc[4]);
54
56
runtime·throw("runtime: misuse of rewindmorestack");