Automatic date update in version.in
[binutils-gdb.git] / gdb / loongarch-tdep.h
blob5c8108182ad6b44c520f5c14229c0348b2a49ad9
1 /* Target-dependent header for the LoongArch architecture, for GDB.
3 Copyright (C) 2022-2024 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;
33 extern const struct regset loongarch_lsxregset;
34 extern const struct regset loongarch_lasxregset;
35 extern const struct regset loongarch_lbtregset;
37 /* Target-dependent structure in gdbarch. */
38 struct loongarch_gdbarch_tdep : gdbarch_tdep_base
40 /* Features about the abi that impact how the gdbarch is configured. */
41 struct loongarch_gdbarch_features abi_features;
43 /* Return the expected next PC if FRAME is stopped at a syscall instruction. */
44 CORE_ADDR (*syscall_next_pc) (const frame_info_ptr &frame) = nullptr;
47 #endif /* LOONGARCH_TDEP_H */