1 /* Target dependent code for GNU/Linux ARC. 2 3 Copyright 2020-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 #ifndef ARC_LINUX_TDEP_H 21 #define ARC_LINUX_TDEP_H 22 23 #include "gdbarch.h" 24 #include "regset.h" 25 26 #define ARC_LINUX_SIZEOF_V2_REGSET (3 * ARC_REGISTER_SIZE) 27 28 /* Reads registers from the NT_PRSTATUS data array into the regcache. */ 29 30 void arc_linux_supply_gregset (const struct regset *regset, 31 struct regcache *regcache, int regnum, 32 const void *gregs, size_t size); 33 34 /* Reads regsiters from the NT_ARC_V2 data array into the regcache. */ 35 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); 39 40 /* Writes registers from the regcache into the NT_PRSTATUS data array. */ 41 42 void arc_linux_collect_gregset (const struct regset *regset, 43 const struct regcache *regcache, 44 int regnum, void *gregs, size_t size); 45 46 /* Writes registers from the regcache into the NT_ARC_V2 data array. */ 47 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); 51 52 #endif /* ARC_LINUX_TDEP_H */ 53