[PATCH 55/57][Arm][OBJDUMP] Add support for MVE instructions: vmul, vmulh, vrmulh...
[binutils-gdb.git] / gdb / fbsd-nat.h
blobb0c9eb16c7754f6b2353838b837d4a9671dfc373
1 /* Native-dependent code for FreeBSD.
3 Copyright (C) 2004-2019 Free Software Foundation, Inc.
5 This file is part of GDB.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20 #ifndef FBSD_NAT_H
21 #define FBSD_NAT_H
23 #include "inf-ptrace.h"
24 #include <sys/proc.h>
26 #ifdef TRAP_BRKPT
27 /* MIPS does not set si_code for SIGTRAP. sparc64 reports
28 non-standard values in si_code for SIGTRAP. */
29 # if !defined(__mips__) && !defined(__sparc64__)
30 # define USE_SIGTRAP_SIGINFO
31 # endif
32 #endif
34 /* A prototype FreeBSD target. */
36 class fbsd_nat_target : public inf_ptrace_target
38 public:
39 char *pid_to_exec_file (int pid) override;
41 int find_memory_regions (find_memory_region_ftype func, void *data) override;
43 bool info_proc (const char *, enum info_proc_what) override;
45 enum target_xfer_status xfer_partial (enum target_object object,
46 const char *annex,
47 gdb_byte *readbuf,
48 const gdb_byte *writebuf,
49 ULONGEST offset, ULONGEST len,
50 ULONGEST *xfered_len) override;
52 #ifdef PT_LWPINFO
53 bool thread_alive (ptid_t ptid) override;
54 std::string pid_to_str (ptid_t) override;
56 #ifdef HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME
57 const char *thread_name (struct thread_info *) override;
58 #endif
60 void update_thread_list () override;
62 thread_control_capabilities get_thread_control_capabilities () override
63 { return tc_schedlock; }
65 void resume (ptid_t, int, enum gdb_signal) override;
67 ptid_t wait (ptid_t, struct target_waitstatus *, int) override;
69 void post_startup_inferior (ptid_t) override;
70 void post_attach (int) override;
72 #ifdef USE_SIGTRAP_SIGINFO
73 bool supports_stopped_by_sw_breakpoint () override;
74 bool stopped_by_sw_breakpoint () override;
75 #endif
77 #ifdef TDP_RFPPWAIT
78 int follow_fork (int, int) override;
80 int insert_fork_catchpoint (int) override;
81 int remove_fork_catchpoint (int) override;
83 int insert_vfork_catchpoint (int) override;
84 int remove_vfork_catchpoint (int) override;
85 #endif
87 #ifdef PL_FLAG_EXEC
88 int insert_exec_catchpoint (int) override;
89 int remove_exec_catchpoint (int) override;
90 #endif
92 #ifdef HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE
93 int set_syscall_catchpoint (int, bool, int, gdb::array_view<const int>)
94 override;
95 #endif
96 #endif /* PT_LWPINFO */
99 #endif /* fbsd-nat.h */