aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>1996-10-21 21:28:48 +0000
committerMichael Snyder <msnyder@vmware.com>1996-10-21 21:28:48 +0000
commit79654d0b75eab7bdb9afa65c40f74ea6c15b556f (patch)
treea1e4d53fdb18b99e48d59055160770edb1883166 /gdb
parent36cf21ce532ce367779911f33301c47cdd100292 (diff)
downloadgdb-79654d0b75eab7bdb9afa65c40f74ea6c15b556f.zip
gdb-79654d0b75eab7bdb9afa65c40f74ea6c15b556f.tar.gz
gdb-79654d0b75eab7bdb9afa65c40f74ea6c15b556f.tar.bz2
* gdb.base/setshow.exp: New file, tests show and set.
* gdb.base/setshow.c: New file, tests show and set. * gdb.base/help.exp: Add test for help set|show annotate. * gdb.base/default.exp: Add test for set|show annotate. PR 8511
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog7
-rw-r--r--gdb/testsuite/gdb.base/setshow.c16
2 files changed, 23 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index e025f85..e09a432 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+Mon Oct 21 14:00:37 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
+
+ * gdb.base/setshow.exp: New file, tests show and set.
+ * gdb.base/setshow.c: New file, tests show and set.
+ * gdb.base/help.exp: Add test for help set|show annotate.
+ * gdb.base/default.exp: Add test for set|show annotate.
+
Tue Oct 15 16:45:02 1996 Stu Grossman (grossman@critters.cygnus.com)
* config/sim-gdb.exp (gdb_target_sim): Remove setting of height
diff --git a/gdb/testsuite/gdb.base/setshow.c b/gdb/testsuite/gdb.base/setshow.c
new file mode 100644
index 0000000..2ac7508
--- /dev/null
+++ b/gdb/testsuite/gdb.base/setshow.c
@@ -0,0 +1,16 @@
+/* IMPORTANT: leave this comment in the first line of this source file. */
+/* this will guarantee that line 1 contains no code. */
+
+#include <stdio.h>
+
+int
+main(argc, argv)
+ int argc;
+ char **argv;
+{
+ int i = 1;
+
+ while (i < argc)
+ printf ("%s ", argv[i++]);
+ return 0;
+}