aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/server.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2005-07-13 15:02:49 +0000
committerDaniel Jacobowitz <drow@false.org>2005-07-13 15:02:49 +0000
commita06660f79997c37a351afbce6ce75bd0c3de1276 (patch)
treeb65b5cbc4f7cd4d3c25bba690da003c6605be6af /gdb/gdbserver/server.h
parent5a1f5858d43f5e99d8faa000263051a89ede63d4 (diff)
downloadfsf-binutils-gdb-a06660f79997c37a351afbce6ce75bd0c3de1276.zip
fsf-binutils-gdb-a06660f79997c37a351afbce6ce75bd0c3de1276.tar.gz
fsf-binutils-gdb-a06660f79997c37a351afbce6ce75bd0c3de1276.tar.bz2
* 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/server.h')
-rw-r--r--gdb/gdbserver/server.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h
index 4b146a1..0840de1 100644
--- a/gdb/gdbserver/server.h
+++ b/gdb/gdbserver/server.h
@@ -97,7 +97,10 @@ extern struct thread_info *current_inferior;
void remove_inferior (struct inferior_list *list,
struct inferior_list_entry *entry);
void remove_thread (struct thread_info *thread);
-void add_thread (unsigned long thread_id, void *target_data);
+void add_thread (unsigned long thread_id, void *target_data, unsigned int);
+unsigned int thread_id_to_gdb_id (unsigned long);
+unsigned int thread_to_gdb_id (struct thread_info *);
+unsigned long gdb_id_to_thread_id (unsigned int);
void clear_inferiors (void);
struct inferior_list_entry *find_inferior
(struct inferior_list *,