diff options
author | Pedro Alves <palves@redhat.com> | 2008-10-23 23:11:21 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-10-23 23:11:21 +0000 |
commit | 252fbfc86a997c0750804d5cdd3ae395d24bebc4 (patch) | |
tree | fdf60a6c2b8e6ca47d061cf7e987795cc9feab83 /gdb/doc | |
parent | 3c0ed2996e2f868939b67b8b83785c5d5c114474 (diff) | |
download | gdb-252fbfc86a997c0750804d5cdd3ae395d24bebc4.zip gdb-252fbfc86a997c0750804d5cdd3ae395d24bebc4.tar.gz gdb-252fbfc86a997c0750804d5cdd3ae395d24bebc4.tar.bz2 |
gdb/
2008-10-23 Pedro Alves <pedro@codesourcery.com>
* defs.h: Mention ptid_is_pid.
* inferior.h (ptid_is_pid): Declare.
* gdbthread.h (struct thread_info) <stop_requested>: New field.
(set_stop_requested): Declare.
* infcmd.c (interrupt_target_1): Call set_stop_requested.
* infrun.c (clear_proceed_status): Clear stop_requested.
(infrun_thread_stop_requested_callback,
infrun_thread_stop_requested): New.
(handle_inferior_event): If a TARGET_SIGNAL_TRAP is reported on a
thread that had an explicit stop request, pretend we got a
TARGET_SIGNAL_0. Always stop if the thread had an explicit stop
request.
(print_stop_reason): In the SIGNAL_RECEIVED case, if we're not
outputting to MI, and we got a TARGET_SIGNAL_0, print "# Stopped",
instead of mentioning signal 0.
(ptid_is_pid): New.
* thread.c (set_stop_requested): New.
* linux-nat.c (queued_waitpid): Rename to ...
(queued_waitpid_1): ... this. Add `peek' argument. Handle it.
(queued_waitpid): New, as wrapper to queued_waitpid_1.
(push_waitpid): Push the SIGTRAP to the local event queue, to the
kernel's.
(send_sigint_callback): Delete.
(linux_nat_stop_lwp): New.
(linux_nat_stop): Use it.
gdb/doc/
2008-10-23 Pedro Alves <pedro@codesourcery.com>
* observer.texi (thread_stop_requested): New.
gdb/testsuite/
2008-10-23 Pedro Alves <pedro@codesourcery.com>
* lib/mi-support.exp (mi_expect_interrupt): Expect signal 0
instead of SIGINT.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/doc/observer.texi | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 5a79cea..56a0496 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2008-10-23 Pedro Alves <pedro@codesourcery.com> + + * observer.texi (thread_stop_requested): New. + 2008-10-22 Joel Brobecker <brobecker@adacore.com> * gdb.texinfo (Ada Tasks, Ada Tasks and Core Files): New nodes. diff --git a/gdb/doc/observer.texi b/gdb/doc/observer.texi index 3e10c5f..f76bf9f 100644 --- a/gdb/doc/observer.texi +++ b/gdb/doc/observer.texi @@ -135,6 +135,14 @@ The thread specified by @var{t} has been created. The thread specified by @var{t} has exited. @end deftypefun +@deftypefun void thread_stop_requested (ptid_t @var{ptid}) +An explicit stop request was issued to @var{ptid}. If @var{ptid} +equals @var{minus_one_ptid}, the request applied to all threads. If +@code{ptid_is_pid(ptid)} returns true, the request applied to all +threads of the process pointed at by @var{ptid}. Otherwise, the +request applied to the single thread pointed at by @var{ptid}. +@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. |