diff options
author | Stan Shebs <shebs@codesourcery.com> | 2009-12-30 16:11:08 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 2009-12-30 16:11:08 +0000 |
commit | 236f1d4defb2070d3e43ce406604da7659860b38 (patch) | |
tree | 52a055eebedde94394340cff1c0be1a648d388f6 /gdb/doc/gdb.texinfo | |
parent | 176fe33f0d2b5c96ea89acba35b684757bdf6e52 (diff) | |
download | gdb-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/doc/gdb.texinfo')
-rw-r--r-- | gdb/doc/gdb.texinfo | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 7d3a35c..39f0d67 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -9643,6 +9643,22 @@ its own @code{end} command): @noindent You may abbreviate @code{while-stepping} as @code{ws} or @code{stepping}. + +@item set default-collect @var{expr1}, @var{expr2}, @dots{} +@kindex set default-collect +@cindex default collection action +This variable is a list of expressions to collect at each tracepoint +hit. It is effectively an additional @code{collect} action prepended +to every tracepoint action list. The expressions are parsed +individually for each tracepoint, so for instance a variable named +@code{xyz} may be interpreted as a global for one tracepoint, and a +local for another, as appropriate to the tracepoint's location. + +@item show default-collect +@kindex show default-collect +Show the list of expressions that are collected by default at each +tracepoint hit. + @end table @node Listing Tracepoints |