aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/freebpcmd.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2003-12-13 20:12:31 +0000
committerJim Blandy <jimb@codesourcery.com>2003-12-13 20:12:31 +0000
commit1b3bb3d0324b5b684e494279279a34b5f81abe56 (patch)
treed5f103df7edaf69b1c50af96f79008aece758db5 /gdb/testsuite/gdb.base/freebpcmd.c
parent8b1ddfd7d13296021b1a07d8133555416f495ea8 (diff)
downloadgdb-1b3bb3d0324b5b684e494279279a34b5f81abe56.zip
gdb-1b3bb3d0324b5b684e494279279a34b5f81abe56.tar.gz
gdb-1b3bb3d0324b5b684e494279279a34b5f81abe56.tar.bz2
* gdb.base/freebpcmd.exp, gdb.base/freebpcmd.c: New test.
Diffstat (limited to 'gdb/testsuite/gdb.base/freebpcmd.c')
-rw-r--r--gdb/testsuite/gdb.base/freebpcmd.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/freebpcmd.c b/gdb/testsuite/gdb.base/freebpcmd.c
new file mode 100644
index 0000000..52d9f30
--- /dev/null
+++ b/gdb/testsuite/gdb.base/freebpcmd.c
@@ -0,0 +1,15 @@
+int
+main (int argc, char **argv)
+{
+ int i;
+
+#ifdef usestubs
+ set_debug_traps();
+ breakpoint();
+#endif
+
+ for (i = 0; i < 100; i++)
+ printf (">>> %d\n", i); /* euphonium */
+
+ return 0;
+}