diff options
author | Yao Qi <yao@codesourcery.com> | 2012-09-18 12:09:28 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2012-09-18 12:09:28 +0000 |
commit | bb25a15c8fdacbdab231bba159894942cdfece2b (patch) | |
tree | a124eea8f88e821de7fefbb8c6beb1758f3dde6b /gdb/doc/observer.texi | |
parent | 201b4506b3d34c274cdc5ec5ffb8f6e43fc982a9 (diff) | |
download | gdb-bb25a15c8fdacbdab231bba159894942cdfece2b.zip gdb-bb25a15c8fdacbdab231bba159894942cdfece2b.tar.gz gdb-bb25a15c8fdacbdab231bba159894942cdfece2b.tar.bz2 |
gdb/doc:
* gdb.texinfo (GDB/MI Async Records): Document new MI
notifications '=tsv-created' and '=tsv-deleted'.
* observer.texi (GDB Observers): New observer tsv_created and
tsv_deleted.
gdb:
* mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
(mi_interpreter_init): Call observer_attach_tsv_created and
observer_attach_tsv_deleted.
(mi_tsv_created, mi_tsv_deleted): New.
* tracepoint.c (delete_trace_state_variable): Call
observer_notify_tsv_deleted.
(trace_variable_command): Call observer_notify_tsv_created.
(delete_trace_variable_command): Call
observer_notify_tsv_deleted.
(create_tsv_from_upload): Call observer_notify_tsv_created.
* NEWS: Mention it.
gdb/testsuite:
gdb.trace/mi-tsv-changed.exp: New.
Diffstat (limited to 'gdb/doc/observer.texi')
-rw-r--r-- | gdb/doc/observer.texi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/doc/observer.texi b/gdb/doc/observer.texi index 4270286..09aa91f 100644 --- a/gdb/doc/observer.texi +++ b/gdb/doc/observer.texi @@ -242,7 +242,16 @@ The parameter of some @code{set} commands in console are changed. This method is called after a command @code{set @var{param} @var{value}}. @var{param} is the parameter of @code{set} command, and @var{value} is the value of changed parameter. +@end deftypefun + +@deftypefun void tsv_created (const char *@var{name}, LONGEST @var{value}) +The new trace state variable @var{name} is created with value +@var{value}. +@end deftypefun +@deftypefun void tsv_deleted (const char *@var{name}) +The trace state variable @var{name} is deleted. If @var{name} is +@code{NULL}, all trace state variables are deleted. @end deftypefun @deftypefun void test_notification (int @var{somearg}) |