aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>2009-12-30 16:11:08 +0000
committerStan Shebs <shebs@codesourcery.com>2009-12-30 16:11:08 +0000
commit236f1d4defb2070d3e43ce406604da7659860b38 (patch)
tree52a055eebedde94394340cff1c0be1a648d388f6 /gdb/testsuite
parent176fe33f0d2b5c96ea89acba35b684757bdf6e52 (diff)
downloadgdb-236f1d4defb2070d3e43ce406604da7659860b38.zip
gdb-236f1d4defb2070d3e43ce406604da7659860b38.tar.gz
gdb-236f1d4defb2070d3e43ce406604da7659860b38.tar.bz2
Add default-collect variable.
* tracepoint.c (default_collect): New global. (encode_actions): Use it. (download_tracepoint): Test it, for otherwise action-less tracepoints. (_initialize_tracepoint): Add set/show. * NEWS: Mention default-collect. * gdb.texinfo (Tracepoint Actions): Describe default-collect. * gdb.trace/actions.exp: Test default-collect.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.trace/actions.exp9
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index a170dcf..13da3d3 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2009-12-29 Stan Shebs <stan@codesourcery.com>
+
+ * gdb.trace/actions.exp: Test default-collect.
+
2009-12-28 Stan Shebs <stan@codesourcery.com>
* gdb.trace/tsv.exp: New file.
diff --git a/gdb/testsuite/gdb.trace/actions.exp b/gdb/testsuite/gdb.trace/actions.exp
index b22b210..bb7277f 100644
--- a/gdb/testsuite/gdb.trace/actions.exp
+++ b/gdb/testsuite/gdb.trace/actions.exp
@@ -203,3 +203,12 @@ gdb_test "help while-stepping" \
gdb_test "help end" "Ends a list of commands or actions.*" \
"5.8d: help end"
+# 5.9 default-collect
+
+gdb_test "set default-collect gdb_char_test, gdb_long_test - 100" \
+ "" \
+ "5.9a: set default-collect"
+
+gdb_test "show default-collect" \
+ "The list of expressions to collect by default is \"gdb_char_test, gdb_long_test - 100\"..*" \
+ "5.9b: show default-collect"