]> Cypherpunks repositories - gostls13.git/commit
runtime: Fix GDB integration with Python 2
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Fri, 10 Apr 2015 19:13:04 +0000 (15:13 -0400)
committerIan Lance Taylor <iant@golang.org>
Fri, 10 Apr 2015 22:17:59 +0000 (22:17 +0000)
commit53840ad6f19b0c1b27a0731a37341d6159625355
tree07dce3bd21cdc21829fd24ca7ecf1c43eeb35d17
parent49a5a97eead27517b98c2c8c5bb40e9b69ccee7b
runtime: Fix GDB integration with Python 2

A similar fix was applied in 545686857bc4c2e7a5306d97e5ef48f631d277bc
but another instance of 'pc' was missed.

Also adds a test for the goroutine gdb command.

It currently uses goroutine 2 for the test, since goroutine 1 has
its stack pointer set to 0 for some reason.

Change-Id: I53ca22be6952f03a862edbdebd9b5c292e0853ae
Reviewed-on: https://go-review.googlesource.com/8729
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/runtime-gdb.py
src/runtime/runtime-gdb_test.go