diff options
Diffstat (limited to 'gdb/testsuite/gdb.go/handcall.go')
-rw-r--r-- | gdb/testsuite/gdb.go/handcall.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.go/handcall.go b/gdb/testsuite/gdb.go/handcall.go new file mode 100644 index 0000000..f32b5e9 --- /dev/null +++ b/gdb/testsuite/gdb.go/handcall.go @@ -0,0 +1,15 @@ +package main + +func add (a,b int) (int) { + return a + b +} + +func sub (a,b int) (int) { + return a - b +} + +var v_int int + +func main () { + v_int = 42 // set breakpoint 1 here +} |