]> Cypherpunks repositories - gostls13.git/commit
runtime: gdb support: use parse_and_eval to get the goroutine id
authorChristian Himpel <chressie@googlemail.com>
Mon, 19 Nov 2012 18:22:47 +0000 (10:22 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 19 Nov 2012 18:22:47 +0000 (10:22 -0800)
commitca8aac698f1766f80f68bcf5581361a784ef10d9
tree6aa689e8881c75c1526c736b14324d7b08b4431f
parent8f3b703323df5831d13a2492019ebe932559ae4f
runtime: gdb support: use parse_and_eval to get the goroutine id

This enables to loop over some goroutines, e.g. to print the
backtrace of goroutines 1 to 9:

        set $i = 1
        while $i < 10
        printf "backtrace of goroutine %d:\n", $i
        goroutine $i++ bt
        end

R=lvd, lvd
CC=golang-dev
https://golang.org/cl/6843071
src/pkg/runtime/runtime-gdb.py