GDB (xrefs)
Loading...
Searching...
No Matches
arm-fbsd-nat.c
Go to the documentation of this file.
1/* Native-dependent code for FreeBSD/arm.
2
3 Copyright (C) 2017-2023 Free Software Foundation, Inc.
4
5 This file is part of GDB.
6
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.
11
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.
16
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/>. */
19
20#include "defs.h"
21#include "inferior.h"
22#include "target.h"
23
24#include "elf/common.h"
25
26#include <sys/types.h>
27#include <sys/ptrace.h>
28#include <machine/reg.h>
29
30#include "fbsd-nat.h"
31#include "arm-tdep.h"
32#include "arm-fbsd-tdep.h"
33#include "inf-ptrace.h"
34
36{
37 void fetch_registers (struct regcache *, int) override;
38 void store_registers (struct regcache *, int) override;
39 const struct target_desc *read_description () override;
40};
41
43
44/* Fetch register REGNUM from the inferior. If REGNUM is -1, do this
45 for all registers. */
46
47void
65
66/* Store register REGNUM back into the inferior. If REGNUM is -1, do
67 this for all registers. */
68
69void
87
88/* Implement the to_read_description method. */
89
90const struct target_desc *
92{
93 const struct target_desc *desc;
94 bool tls = false;
95
97 return this->beneath ()->read_description ();
98
99#ifdef PT_GETREGSET
101#endif
103 if (desc == NULL)
104 desc = this->beneath ()->read_description ();
105 return desc;
106}
107
109void
int regnum
void _initialize_arm_fbsd_nat()
static arm_fbsd_nat_target the_arm_fbsd_nat_target
const struct target_desc * arm_fbsd_read_description_auxv(const gdb::optional< gdb::byte_vector > &auxv, target_ops *target, gdbarch *gdbarch, bool tls)
const struct regset arm_fbsd_vfpregset
const struct regset arm_fbsd_gregset
const struct regset arm_fbsd_tls_regset
size_t have_regset(ptid_t ptid, int note)
Definition fbsd-nat.c:2388
bool fetch_register_set(struct regcache *regcache, int regnum, int fetch_op, const struct regset *regset, int regbase, void *regs, size_t size)
Definition fbsd-nat.c:2336
gdbarch * arch() const
Definition regcache.c:231
void add_inf_child_target(inf_child_target *target)
Definition inf-child.c:418
ptid_t inferior_ptid
Definition infcmd.c:74
void store_registers(struct regcache *, int) override
const struct target_desc * read_description() override
void fetch_registers(struct regcache *, int) override
target_ops * beneath() const
Definition target.c:3041
virtual const struct target_desc * read_description() TARGET_DEFAULT_RETURN(NULL)