From 63c40ec727109e2bb2956ab95968350df00c1aa1 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Thu, 21 Jul 2016 12:12:18 +0100 Subject: Refactor clone_all_breakpoints This patch is to change the interface of clone_all_breakpoints, from lists of breakpoints and raw_breakpoints to child thread and parent thread. I choose child thread to pass because we need the ptid of the child thread in the following patch. gdb/gdbserver: 2016-07-21 Yao Qi * inferiors.c (get_thread_process): Make parameter const. * inferiors.h (get_thread_process): Update declaration. * mem-break.c (clone_all_breakpoints): Remove all parameters. Add new parameters child_thread and parent_thread. Callers updated. * mem-break.h (clone_all_breakpoints): Update declaration. --- gdb/gdbserver/inferiors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/gdbserver/inferiors.h') diff --git a/gdb/gdbserver/inferiors.h b/gdb/gdbserver/inferiors.h index 00dfe60..65ab1c6 100644 --- a/gdb/gdbserver/inferiors.h +++ b/gdb/gdbserver/inferiors.h @@ -88,7 +88,7 @@ struct process_info no current thread selected. */ struct process_info *current_process (void); -struct process_info *get_thread_process (struct thread_info *); +struct process_info *get_thread_process (const struct thread_info *); extern struct inferior_list all_processes; -- cgit v1.1