aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/inferiors.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2005-03-03 16:56:53 +0000
committerDaniel Jacobowitz <drow@false.org>2005-03-03 16:56:53 +0000
commita1928bada5edd03fee8aaccce7775c273ae0fcd4 (patch)
tree57b8c09bcd4c8bc4daf58a6b26ed54a835bd9982 /gdb/gdbserver/inferiors.c
parente20b46382a937f11ace221ee5b8a68aab819f504 (diff)
downloadgdb-a1928bada5edd03fee8aaccce7775c273ae0fcd4.zip
gdb-a1928bada5edd03fee8aaccce7775c273ae0fcd4.tar.gz
gdb-a1928bada5edd03fee8aaccce7775c273ae0fcd4.tar.bz2
* inferiors.c (change_inferior_id, add_thread, find_inferior_id):
Take unsigned long arguments for PIDs. * linux-low.c (add_process, linux_attach_lwp, linux_attach) (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop) (wait_for_sigstop, linux_resume_one_process) (regsets_fetch_inferior_registers, linux_send_signal) (linux_read_auxv): Likewise. Update the types of variables holding PIDs. Update format string specifiers. * linux-low.h (struct process_info, linux_attach_lwp): Likewise. * remote-utils.c (prepare_resume_reply): Likewise. * server.c (cont_thread, general_thread, step_thread) (thread_from_wait, old_thread_from_wait, signal_pid): Change type to unsigned long. (handle_query): Update format specifiers. (handle_v_cont, main): Use strtoul for thread IDs. * server.h (struct inferior_list_entry): Use unsigned long for ID. (add_thread, find_inferior_id, change_inferior_id, cont_thread) (general_thread, step_thread, thread_from_wait) (old_thread_from_wait): Update. * target.h (struct thread_resume): Use unsigned long for THREAD. (struct target_ops): Use unsigned long for arguments to attach and thread_alive.
Diffstat (limited to 'gdb/gdbserver/inferiors.c')
-rw-r--r--gdb/gdbserver/inferiors.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/gdbserver/inferiors.c b/gdb/gdbserver/inferiors.c
index 68c91c4..65e5a82 100644
--- a/gdb/gdbserver/inferiors.c
+++ b/gdb/gdbserver/inferiors.c
@@ -1,5 +1,5 @@
/* Inferior process information for the remote server for GDB.
- Copyright 2002
+ Copyright 2002, 2005
Free Software Foundation, Inc.
Contributed by MontaVista Software.
@@ -66,7 +66,7 @@ for_each_inferior (struct inferior_list *list,
void
change_inferior_id (struct inferior_list *list,
- int new_id)
+ unsigned long new_id)
{
if (list->head != list->tail)
error ("tried to change thread ID after multiple threads are created");
@@ -102,7 +102,7 @@ remove_inferior (struct inferior_list *list,
}
void
-add_thread (int thread_id, void *target_data)
+add_thread (unsigned long thread_id, void *target_data)
{
struct thread_info *new_thread
= (struct thread_info *) malloc (sizeof (*new_thread));
@@ -160,7 +160,7 @@ find_inferior (struct inferior_list *list,
}
struct inferior_list_entry *
-find_inferior_id (struct inferior_list *list, int id)
+find_inferior_id (struct inferior_list *list, unsigned long id)
{
struct inferior_list_entry *inf = list->head;