aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-low.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-03-17 20:25:35 +0000
committerPedro Alves <palves@redhat.com>2009-03-17 20:25:35 +0000
commit54a0b537b8b8ebf14fe9cb3fc82e1ae090d5d6bb (patch)
treedf9936b76bbe5df2fb2f2fd044540ae8d4bb39bc /gdb/gdbserver/linux-low.h
parent7d85a9c0e3639345cb6d19c139ccb9da5095fc76 (diff)
downloadgdb-54a0b537b8b8ebf14fe9cb3fc82e1ae090d5d6bb.zip
gdb-54a0b537b8b8ebf14fe9cb3fc82e1ae090d5d6bb.tar.gz
gdb-54a0b537b8b8ebf14fe9cb3fc82e1ae090d5d6bb.tar.bz2
Rename "process" to "lwp" throughout.
* linux-low.c (all_processes): Rename to... (all_lwps): ... this. (inferior_pid, handle_extended_wait, get_stop_pc): Adjust. (add_process): Rename to ... (add_lwp): ... this. Adjust. (linux_create_inferior): Adjust. (linux_attach_lwp): Adjust. (linux_attach): Adjust. (linux_kill_one_process): Rename to ... (linux_kill_one_lwp): ... this. Adjust. (linux_kill): Adjust. (linux_detach_one_process): Rename to ... (linux_detach_one_lwp): ... this. Adjust. (linux_detach): Adjust. (check_removed_breakpoint): Adjust. (status_pending_p): Adjust. (linux_wait_for_process): Rename to ... (linux_wait_for_lwp): ... this. Adjust. (linux_wait_for_event): Adjust. (send_sigstop): Adjust. (wait_for_sigstop): Adjust. (stop_all_processes): Rename to ... (stop_all_lwps): ... this. (linux_resume_one_process): Rename to ... (linux_resume_one_lwp): ... this. Adjust. (linux_set_resume_request, linux_continue_one_thread) (linux_queue_one_thread, resume_status_pending_p) (usr_store_inferior_registers, regsets_store_inferior_registers) (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): Adjust. * linux-low.h (get_process): Rename to ... (get_lwp): ... this. Adjust. (get_thread_process): Rename to ... (get_thread_lwp): ... this. Adjust. (get_process_thread): Rename to ... (get_lwp_thread): ... this. Adjust. (struct process_info): Rename to ... (struct lwp_info): ... this. (all_processes): Rename to ... (all_lwps): ... this. * proc-service.c (ps_lgetregs): Adjust. * thread-db.c (thread_db_create_event, find_one_thread) (maybe_attach_thread, thread_db_get_tls_address): Adjust.
Diffstat (limited to 'gdb/gdbserver/linux-low.h')
-rw-r--r--gdb/gdbserver/linux-low.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/gdbserver/linux-low.h b/gdb/gdbserver/linux-low.h
index a47f4e08..0847f6e 100644
--- a/gdb/gdbserver/linux-low.h
+++ b/gdb/gdbserver/linux-low.h
@@ -78,13 +78,13 @@ struct linux_target_ops
extern struct linux_target_ops the_low_target;
-#define get_process(inf) ((struct process_info *)(inf))
-#define get_thread_process(thr) (get_process (inferior_target_data (thr)))
-#define get_process_thread(proc) ((struct thread_info *) \
- find_inferior_id (&all_threads, \
- get_process (proc)->lwpid))
+#define get_lwp(inf) ((struct lwp_info *)(inf))
+#define get_thread_lwp(thr) (get_lwp (inferior_target_data (thr)))
+#define get_lwp_thread(proc) ((struct thread_info *) \
+ find_inferior_id (&all_threads, \
+ get_lwp (proc)->lwpid))
-struct process_info
+struct lwp_info
{
struct inferior_list_entry head;
unsigned long lwpid;
@@ -126,7 +126,7 @@ struct process_info
struct pending_signals *pending_signals;
/* A link used when resuming. It is initialized from the resume request,
- and then processed and cleared in linux_resume_one_process. */
+ and then processed and cleared in linux_resume_one_lwp. */
struct thread_resume *resume;
@@ -138,7 +138,7 @@ struct process_info
#endif
};
-extern struct inferior_list all_processes;
+extern struct inferior_list all_lwps;
void linux_attach_lwp (unsigned long pid);