gdb: change subfile::name and buildsym_compunit::m_comp_dir to strings
[binutils-gdb.git] / gdb / loongarch-tdep.h
1 /* Target-dependent header for the LoongArch architecture, for GDB.
2
3 Copyright (C) 2022 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 LOONGARCH_TDEP_H
21 #define LOONGARCH_TDEP_H
22
23 #include "gdbarch.h"
24 #include "arch/loongarch.h"
25 #include "regset.h"
26
27 #include "elf/loongarch.h"
28 #include "opcode/loongarch.h"
29
30 /* Register set definitions. */
31 extern const struct regset loongarch_gregset;
32
33 /* Target-dependent structure in gdbarch. */
34 struct loongarch_gdbarch_tdep : gdbarch_tdep
35 {
36 /* Features about the abi that impact how the gdbarch is configured. */
37 struct loongarch_gdbarch_features abi_features;
38
39 struct
40 {
41 int r; /* General register. */
42 int ra; /* Return Address. */
43 int sp; /* Stack Pointer. */
44 int pc; /* Program Counter. */
45 int badv; /* Bad vaddr for addressing exception. */
46 } regs; /* LoongArch registers */
47 };
48
49 #endif /* LOONGARCH_TDEP_H */