GDB (xrefs)

xtensa.h
Go to the documentation of this file.
1 /* Common Target-dependent code for the Xtensa port of GDB, the GNU debugger.
2
3 Copyright (C) 2003-2018 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 XTENSA_H
21 #define XTENSA_H
22
23 /* Xtensa ELF core file register set representation ('.reg' section).
24 Copied from target-side ELF header <xtensa/elf.h>. */
25
26 typedef uint32_t xtensa_elf_greg_t;
27
28 typedef struct
29 {
30 xtensa_elf_greg_t pc;
31 xtensa_elf_greg_t ps;
32 xtensa_elf_greg_t lbeg;
33 xtensa_elf_greg_t lend;
34 xtensa_elf_greg_t lcount;
35 xtensa_elf_greg_t sar;
36 xtensa_elf_greg_t windowstart;
37 xtensa_elf_greg_t windowbase;
38 xtensa_elf_greg_t threadptr;
39 xtensa_elf_greg_t reserved[7+48];
40 xtensa_elf_greg_t ar[64];
41 } xtensa_elf_gregset_t;
42
43 #define XTENSA_ELF_NGREG (sizeof (xtensa_elf_gregset_t) \
44 / sizeof (xtensa_elf_greg_t))
45
46 #define C0_NREGS 16 /* Number of A-registers to track in call0 ABI. */
47
48 #endif
xtensa_elf_greg_t
uint32_t xtensa_elf_greg_t
Definition: xtensa.h:26
xtensa_elf_gregset_t
Definition: xtensa.h:28
xtensa_elf_gregset_t::ps
xtensa_elf_greg_t ps
Definition: xtensa.h:31
xtensa_elf_gregset_t::lbeg
xtensa_elf_greg_t lbeg
Definition: xtensa.h:32
xtensa_elf_gregset_t::lend
xtensa_elf_greg_t lend
Definition: xtensa.h:33
xtensa_elf_gregset_t::windowstart
xtensa_elf_greg_t windowstart
Definition: xtensa.h:36
xtensa_elf_gregset_t::threadptr
xtensa_elf_greg_t threadptr
Definition: xtensa.h:38
xtensa_elf_gregset_t::windowbase
xtensa_elf_greg_t windowbase
Definition: xtensa.h:37
xtensa_elf_gregset_t::lcount
xtensa_elf_greg_t lcount
Definition: xtensa.h:34
xtensa_elf_gregset_t::sar
xtensa_elf_greg_t sar
Definition: xtensa.h:35
xtensa_elf_gregset_t::pc
xtensa_elf_greg_t pc
Definition: xtensa.h:30