diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-11-17 16:43:34 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-11-17 16:43:34 +0000 |
commit | 66bb093b5faddd76e3e307ce59024ac703e8b892 (patch) | |
tree | 4bcb5c077f25e10f7998756e24d2c2ff74891dd8 /gdb/doc | |
parent | 8dd4f202ecf146ae7746e10277ddebedc43f42d4 (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 18f6650..e0b6aa4 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,5 +1,10 @@ 2008-11-17 Vladimir Prus <vladimir@codesourcery.com> + * gdb.texinfo (GDB/MI Async Records): Document + =thread-selected. + +2008-11-17 Vladimir Prus <vladimir@codesourcery.com> + * observer.texi (new_inferior, inferior_exit): New observers. 2008-10-27 Pedro Alves <pedro@codesourcery.com> 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 |