switch inferior/thread before calling target methods
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.go / hello.go
CommitLineData
a766d390
DE
1package main
2
3import "fmt"
4
5var myst = "Shall we?"
6
7func main () {
04ff1e61 8 fmt.Println ("Before assignment")
a766d390 9 st := "Hello, world!" // this intentionally shadows the global "st"
04ff1e61
AA
10 fmt.Println (st) // set breakpoint 1 here
11 fmt.Println (myst)
a766d390 12}
This page took 0.848884 seconds and 4 git commands to generate.