aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc/gdb.texinfo
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-11-17 16:43:34 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-11-17 16:43:34 +0000
commit66bb093b5faddd76e3e307ce59024ac703e8b892 (patch)
tree4bcb5c077f25e10f7998756e24d2c2ff74891dd8 /gdb/doc/gdb.texinfo
parent8dd4f202ecf146ae7746e10277ddebedc43f42d4 (diff)
downloadgdb-66bb093b5faddd76e3e307ce59024ac703e8b892.zip
gdb-66bb093b5faddd76e3e307ce59024ac703e8b892.tar.gz
gdb-66bb093b5faddd76e3e307ce59024ac703e8b892.tar.bz2
Implement =thread-selected notification.
* mi/mi-common.h (struct mi_interp): New, moved from ... * mi/mi-interp.c: ...here. * mi/mi-main.c (mi_execute_command): If the thread changed as result of command, report that.
Diffstat (limited to 'gdb/doc/gdb.texinfo')
-rw-r--r--gdb/doc/gdb.texinfo13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 261d1c7..26cf4b6 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -19273,6 +19273,19 @@ A signal was received by the inferior.
@itemx =thread-exited,id="@var{id}"
A thread either was created, or has exited. The @var{id} field
contains the @value{GDBN} identifier of the thread.
+
+@item =thread-selected,id="@var{id}"
+Informs that the selected thread was changed as result of the last
+command. This notification is not emitted as result of @code{-thread-select}
+command but is emitted whenever an MI command that is not documented
+to change the selected thread actually changes it. In particular,
+invoking, directly or indirectly (via user-defined command), the CLI
+@code{thread} command, will generate this notification.
+
+We suggest that in response to this notification, front ends
+highlight the selected thread and cause subsequent commands to apply to
+that thread.
+
@end table