Automatic date update in version.in
[binutils-gdb.git] / gdb / loongarch-tdep.h
blobe35b6cf4c7a217caaea4f99ceff710bd186c1ee1
1 /* Target-dependent header for the LoongArch architecture, for GDB.
3 Copyright (C) 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 LOONGARCH_TDEP_H
21 #define LOONGARCH_TDEP_H
23 #include "gdbarch.h"
24 #include "arch/loongarch.h"
25 #include "regset.h"
27 #include "elf/loongarch.h"
28 #include "opcode/loongarch.h"
30 /* Register set definitions. */
31 extern const struct regset loongarch_gregset;
32 extern const struct regset loongarch_fpregset;
34 /* Target-dependent structure in gdbarch. */
35 struct loongarch_gdbarch_tdep : gdbarch_tdep
37 /* Features about the abi that impact how the gdbarch is configured. */
38 struct loongarch_gdbarch_features abi_features;
40 /* Return the expected next PC if FRAME is stopped at a syscall instruction. */
41 CORE_ADDR (*syscall_next_pc) (struct frame_info *frame) = nullptr;
44 #endif /* LOONGARCH_TDEP_H */