diff options
author | Pedro Alves <palves@redhat.com> | 2010-04-03 23:14:18 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-04-03 23:14:18 +0000 |
commit | fc7238bbbae178f1c552e943d68e08f99d642274 (patch) | |
tree | c3aede94f1e54cd35ee5596c62ff5657c6862aa7 /gdb/gdbserver/inferiors.c | |
parent | 1eed4def45f5030af73bcc8342927f7bf34be9b1 (diff) | |
download | gdb-fc7238bbbae178f1c552e943d68e08f99d642274.zip gdb-fc7238bbbae178f1c552e943d68e08f99d642274.tar.gz gdb-fc7238bbbae178f1c552e943d68e08f99d642274.tar.bz2 |
* inferiors.c (add_thread): Set last_status kind to
TARGET_WAITKIND_IGNORE.
* linux-low.c (cancel_breakpoint): Remove unnecessary regcache
fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
(linux_wait_1): Move `thread' local definition to block that uses
it. Don't NULL initialize `event_child'.
(linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
* linux-x86-low.c (x86_breakpoint_at): Read raw memory.
Diffstat (limited to 'gdb/gdbserver/inferiors.c')
-rw-r--r-- | gdb/gdbserver/inferiors.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/gdbserver/inferiors.c b/gdb/gdbserver/inferiors.c index 37df792..8e3f1de 100644 --- a/gdb/gdbserver/inferiors.c +++ b/gdb/gdbserver/inferiors.c @@ -171,6 +171,7 @@ add_thread (ptid_t thread_id, void *target_data) memset (new_thread, 0, sizeof (*new_thread)); new_thread->entry.id = thread_id; + new_thread->last_status.kind = TARGET_WAITKIND_IGNORE; add_inferior_to_list (&all_threads, & new_thread->entry); |