You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason is that when you break on 'main.finish', gdb breaks on
the finish's frame, and because gdb can't backtrace our stack frames
on RISC architectures, the 'up' command will go to the wrong frame,
so mapvar can't be found there.
At least this is the reason for #10002, as I don't have access to
ppc64le systems to verify my hypothesis.
However, if we say break main.go:10 so that the breakpoint in the
the 'main.main' frame, then gdb can indeed print the correct map
out.
The easiest way to fix the gdb backtrace problem is to use
frame pointers like what we did with the framepointer experiment
on amd64. I'm not sure if we can write a python helper to unwind
the stack for gdb, is that possible? Interpreting our pclntab in Python
is at least simpler than interpreting that in DWARF. Or we can
use our spadj to generate cfa pseudo-instructions for gdb to
unwind the stack. @ianlancetaylor
TestGdbPython fails on the ppc64le builder. Don't know what the failure means.
http://build.golang.org/log/d81ea75267328ddf3441a74c92bc930679b9b69f
Turning off. Might be nice to understand for Go 1.5 but not terribly concerned.
The text was updated successfully, but these errors were encountered: