1 /* Target dependent code for GNU/Linux ARC.
3 Copyright 2020-2022 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 ARC_LINUX_TDEP_H
21 #define ARC_LINUX_TDEP_H
26 #define ARC_LINUX_SIZEOF_V2_REGSET (3 * ARC_REGISTER_SIZE)
28 /* Reads registers from the NT_PRSTATUS data array into the regcache. */
30 void arc_linux_supply_gregset (const struct regset
*regset
,
31 struct regcache
*regcache
, int regnum
,
32 const void *gregs
, size_t size
);
34 /* Reads regsiters from the NT_ARC_V2 data array into the regcache. */
36 void arc_linux_supply_v2_regset (const struct regset
*regset
,
37 struct regcache
*regcache
, int regnum
,
38 const void *v2_regs
, size_t size
);
40 /* Writes registers from the regcache into the NT_PRSTATUS data array. */
42 void arc_linux_collect_gregset (const struct regset
*regset
,
43 const struct regcache
*regcache
,
44 int regnum
, void *gregs
, size_t size
);
46 /* Writes registers from the regcache into the NT_ARC_V2 data array. */
48 void arc_linux_collect_v2_regset (const struct regset
*regset
,
49 const struct regcache
*regcache
,
50 int regnum
, void *v2_regs
, size_t size
);
52 #endif /* ARC_LINUX_TDEP_H */