diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-06-10 10:23:54 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-06-10 10:23:54 +0000 |
commit | e1ac3328737bc34a23dbfff92b416a9d9306329a (patch) | |
tree | a6ffb502159f70dbab8c069def57709877ec7b9d /gdb/doc | |
parent | f7f9a841a31878b377a60bfc7c793e6c8400fafe (diff) | |
download | gdb-e1ac3328737bc34a23dbfff92b416a9d9306329a.zip gdb-e1ac3328737bc34a23dbfff92b416a9d9306329a.tar.gz gdb-e1ac3328737bc34a23dbfff92b416a9d9306329a.tar.bz2 |
Implement *running.
* Makefile.in: Update dependencies.
* gdbthread.h (struct thread_info): New field
running_.
(set_running, is_running): New.
* thread.c (set_running, is_running): New.
* inferior.h (suppress_normal_stop_observer): Rename to...
(suppress_run_stop_observers): ..this.
* infcmd.c (suppress_normal_stop_observer): Rename to...
(suppress_run_stop_observers): ..this.
(finish_command_continuation, finish_command): Adjust.
* infcall.c (call_function_by_hand): Adjust.
* infrun.c (normal_stop): Call set_running.
* target.c (target_resume): New. Call set_running.
* target.h (target_resume): Convert from macro to
a function.
* mi/mi-interp.c (mi_on_resume): New.
(mi_interpreter_init): Register mi_on_resume.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 11 | ||||
-rw-r--r-- | gdb/doc/observer.texi | 5 |
3 files changed, 21 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index c249253..d2d5349 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2008-06-10 Vladimir Prus <vladimir@codesourcery.com> + + * observer.texi (target_resumed): New observer. + * gdb.texinfo (GDB/MI Output Records): Document *running. + 2008-06-06 Tom Tromey <tromey@redhat.com> * gdb.texinfo (Completion): Add field name example. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 5cef05b..df1f1a2 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -18335,6 +18335,17 @@ The following is the list of possible async records: @table @code +@item *running,thread-id="@var{thread}" +The target is now running. The @var{thread} field tells which +specific thread is now running, and can be @samp{all} if all threads +are running. The frontend should assume that no interaction with a +running thread is possible after this notification is produced. +The frontend should not assume that this notification is output +only once for any command. @value{GDBN} may emit this notification +several times, either for different threads, because it cannot resume +all threads together, or even for a single thread, if the thread must +be stepped though some code before letting it run freely. + @item *stopped,reason="@var{reason}" The target has stopped. The @var{reason} field can have one of the following values: diff --git a/gdb/doc/observer.texi b/gdb/doc/observer.texi index af3835b..7d4d808 100644 --- a/gdb/doc/observer.texi +++ b/gdb/doc/observer.texi @@ -137,3 +137,8 @@ The thread specified by @var{t} has been created. The thread specified by @var{t} has exited. @end deftypefun +@deftypefun void target_resumed (ptid_t @var{ptid}) +The target was resumed. The @var{ptid} parameter specifies which +thread was resume, and may be RESUME_ALL if all threads are resumed. +@end deftypefun + |