fbsd-low.h (157572) | fbsd-low.h (157574) |
---|---|
1/* Internal interfaces for the GNU/Linux specific target code for gdbserver. 2 Copyright 2002, 2004 Free Software Foundation, Inc. 3 4 This file is part of GDB. 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2 of the License, or --- 4 unchanged lines hidden (view full) --- 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with this program; if not, write to the Free Software 18 Foundation, Inc., 59 Temple Place - Suite 330, 19 Boston, MA 02111-1307, USA. */ 20 | 1/* Internal interfaces for the GNU/Linux specific target code for gdbserver. 2 Copyright 2002, 2004 Free Software Foundation, Inc. 3 4 This file is part of GDB. 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2 of the License, or --- 4 unchanged lines hidden (view full) --- 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with this program; if not, write to the Free Software 18 Foundation, Inc., 59 Temple Place - Suite 330, 19 Boston, MA 02111-1307, USA. */ 20 |
21#ifdef HAVE_LINUX_REGSETS | 21/* 22 * $FreeBSD: head/gnu/usr.bin/gdb/gdbserver/fbsd-low.h 157574 2006-04-06 22:24:01Z jmg $ 23 */ 24 |
22typedef void (*regset_fill_func) (void *); 23typedef void (*regset_store_func) (const void *); 24enum regset_type { 25 GENERAL_REGS, 26 FP_REGS, 27 EXTENDED_REGS, 28}; 29 30struct regset_info 31{ 32 int get_request, set_request; 33 int size; 34 enum regset_type type; 35 regset_fill_func fill_function; 36 regset_store_func store_function; 37}; 38extern struct regset_info target_regsets[]; | 25typedef void (*regset_fill_func) (void *); 26typedef void (*regset_store_func) (const void *); 27enum regset_type { 28 GENERAL_REGS, 29 FP_REGS, 30 EXTENDED_REGS, 31}; 32 33struct regset_info 34{ 35 int get_request, set_request; 36 int size; 37 enum regset_type type; 38 regset_fill_func fill_function; 39 regset_store_func store_function; 40}; 41extern struct regset_info target_regsets[]; |
39#endif | |
40 | 42 |
41struct linux_target_ops | 43struct fbsd_target_ops |
42{ 43 int num_regs; 44 int *regmap; 45 int (*cannot_fetch_register) (int); 46 47 /* Returns 0 if we can store the register, 1 if we can not 48 store the register, and 2 if failure to store the register 49 is acceptable. */ --- 4 unchanged lines hidden (view full) --- 54 int breakpoint_len; 55 CORE_ADDR (*breakpoint_reinsert_addr) (void); 56 57 58 int decr_pc_after_break; 59 int (*breakpoint_at) (CORE_ADDR pc); 60}; 61 | 44{ 45 int num_regs; 46 int *regmap; 47 int (*cannot_fetch_register) (int); 48 49 /* Returns 0 if we can store the register, 1 if we can not 50 store the register, and 2 if failure to store the register 51 is acceptable. */ --- 4 unchanged lines hidden (view full) --- 56 int breakpoint_len; 57 CORE_ADDR (*breakpoint_reinsert_addr) (void); 58 59 60 int decr_pc_after_break; 61 int (*breakpoint_at) (CORE_ADDR pc); 62}; 63 |
62extern struct linux_target_ops the_low_target; | 64extern struct fbsd_target_ops the_low_target; |
63 64#define get_process(inf) ((struct process_info *)(inf)) 65#define get_thread_process(thr) (get_process (inferior_target_data (thr))) 66#define get_process_thread(proc) ((struct thread_info *) \ 67 find_inferior_id (&all_threads, \ 68 get_process (proc)->tid)) 69 70struct process_info --- 32 unchanged lines hidden (view full) --- 103 was a single-step. */ 104 int stepping; 105 106 /* If this is non-zero, it points to a chain of signals which need to 107 be delivered to this process. */ 108 struct pending_signals *pending_signals; 109 110 /* A link used when resuming. It is initialized from the resume request, | 65 66#define get_process(inf) ((struct process_info *)(inf)) 67#define get_thread_process(thr) (get_process (inferior_target_data (thr))) 68#define get_process_thread(proc) ((struct thread_info *) \ 69 find_inferior_id (&all_threads, \ 70 get_process (proc)->tid)) 71 72struct process_info --- 32 unchanged lines hidden (view full) --- 105 was a single-step. */ 106 int stepping; 107 108 /* If this is non-zero, it points to a chain of signals which need to 109 be delivered to this process. */ 110 struct pending_signals *pending_signals; 111 112 /* A link used when resuming. It is initialized from the resume request, |
111 and then processed and cleared in linux_resume_one_process. */ | 113 and then processed and cleared in fbsd_resume_one_process. */ |
112 113 struct thread_resume *resume; 114}; 115 116extern struct inferior_list all_processes; 117 | 114 115 struct thread_resume *resume; 116}; 117 118extern struct inferior_list all_processes; 119 |
118void linux_attach_lwp (int pid, int tid); | 120void fbsd_attach_lwp (int pid, int tid); |
119 120int thread_db_init (void); | 121 122int thread_db_init (void); |