diff options
| author | Cherry Zhang <cherryyz@google.com> | 2016-06-08 22:22:35 -0400 |
|---|---|---|
| committer | Cherry Zhang <cherryyz@google.com> | 2016-06-09 20:02:59 +0000 |
| commit | cbc26869b7835e45359dad7dfb70e85c02c820cd (patch) | |
| tree | 4527055731c30ee7c626a3296e686f049ab5d0f5 /src/encoding | |
| parent | e3f1c66f313a59888620c415163b93c12153574e (diff) | |
| download | go-cbc26869b7835e45359dad7dfb70e85c02c820cd.tar.xz | |
runtime: set $sp before $pc in gdb python script
When setting $pc, gdb does a backtrace using the current value of $sp,
and it may complain if $sp does not match that $pc (although the
assignment went through successfully).
This happens with ARM SSA backend: when setting $pc it prints
> Cannot access memory at address 0x0
As well as occasionally on MIPS64:
> warning: GDB can't find the start of the function at 0xc82003fe07.
> ...
Setting $sp before setting $pc makes it happy.
Change-Id: Idd96dbef3e9b698829da553c6d71d5b4c6d492db
Reviewed-on: https://go-review.googlesource.com/23940
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions
