diff options
author | Daniel Jacobowitz <dan@debian.org> | 2005-07-13 15:02:49 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2005-07-13 15:02:49 +0000 |
commit | 9582bfeef4fa973e11c2e8375d5f5b2879add19b (patch) | |
tree | 410509d2fdf706ac17de2b11de04e4a060568e39 /gdb/gdbserver/linux-low.c | |
parent | 90e2d78a8e7c46c21b3818f6ecdbc5ffd9209bdb (diff) | |
download | gdb-9582bfeef4fa973e11c2e8375d5f5b2879add19b.tar.gz |
* inferiors.c (struct thread_info): Add gdb_id.
(add_thread): Add gdb_id argument.
(thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
* linux-low.c (linux_create_inferior, linux_attach_lwp): Update
calls to add_thread.
* remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
* server.c (handle_query): Use thread_to_gdb_id.
(handle_v_cont, main): Use gdb_id_to_thread_id.
* server.h (add_thread): Update prototype.
(thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
prototypes.
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r-- | gdb/gdbserver/linux-low.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 904ff6b90bd..aefec5e4bfd 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -160,7 +160,7 @@ linux_create_inferior (char *program, char **allargs) } new_process = add_process (pid); - add_thread (pid, new_process); + add_thread (pid, new_process, pid); return pid; } @@ -185,7 +185,7 @@ linux_attach_lwp (unsigned long pid, unsigned long tid) } new_process = (struct process_info *) add_process (pid); - add_thread (tid, new_process); + add_thread (tid, new_process, pid); /* The next time we wait for this LWP we'll see a SIGSTOP as PTRACE_ATTACH brings it to a halt. We should ignore that SIGSTOP and resume the process |