aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-09-18 12:09:28 +0000
committerYao Qi <yao@codesourcery.com>2012-09-18 12:09:28 +0000
commitbb25a15c8fdacbdab231bba159894942cdfece2b (patch)
treea124eea8f88e821de7fefbb8c6beb1758f3dde6b /gdb/doc
parent201b4506b3d34c274cdc5ec5ffb8f6e43fc982a9 (diff)
downloadgdb-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')
-rw-r--r--gdb/doc/ChangeLog7
-rw-r--r--gdb/doc/gdb.texinfo9
-rw-r--r--gdb/doc/observer.texi9
3 files changed, 25 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 80e1b60..2323374 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,5 +1,12 @@
2012-09-18 Yao Qi <yao@codesourcery.com>
+ * 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.
+
+2012-09-18 Yao Qi <yao@codesourcery.com>
+
* observer.texi (GDB Observers): New observer 'traceframe_changed'.
* gdb.texinfo (GDB/MI Async Records): Mention new MI notification
'=traceframe-changed'.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index ee03521..cd4513b 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -27639,6 +27639,15 @@ Reports that the trace frame was changed and its new number is
@var{tfnum}. The number of the tracepoint associated with this trace
frame is @var{tpnum}.
+@item =tsv-created,name=@var{name},value=@var{value}
+Reports that the new trace state variable @var{name} is created with
+value @var{value}.
+
+@item =tsv-deleted,name=@var{name}
+@itemx =tsv-deleted
+Reports that the trace state variable @var{name} is deleted or all
+trace state variables are deleted.
+
@item =breakpoint-created,bkpt=@{...@}
@itemx =breakpoint-modified,bkpt=@{...@}
@itemx =breakpoint-deleted,id=@var{number}
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})