Chromium Code Reviews

Unified Diff: gdb/testsuite/gdb.go/handcall.go

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « gdb/testsuite/gdb.go/handcall.exp ('k') | gdb/testsuite/gdb.go/hello.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.go/handcall.go
diff --git a/gdb/testsuite/gdb.go/handcall.go b/gdb/testsuite/gdb.go/handcall.go
new file mode 100644
index 0000000000000000000000000000000000000000..f32b5e9a47307cef75abb3ae77908b13a5398a80
--- /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
+}
« no previous file with comments | « gdb/testsuite/gdb.go/handcall.exp ('k') | gdb/testsuite/gdb.go/hello.exp » ('j') | no next file with comments »

Powered by Google App Engine