aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2017-02-21 17:14:37 -0800
committerMax Filippov <jcmvbkbc@gmail.com>2017-03-27 12:57:07 -0700
commitc56054f9a80e157e3d2d5109821abd191b68f0ea (patch)
tree986bbcb1abb739dae8b5f287ca7e8e159edc3084 /gdb/arch
parenta43986283d61ffd4d7dc9b20c0ecb73cd345206c (diff)
gdb: gdbserver: xtensa: make C0_NREGS available
Both gdb and gdbserver need this definition to properly work with call0 ABI. Make it available to both. gdb/ 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> * arch/xtensa.h (C0_NREGS): Add definition. * xtensa-tdep.c (C0_NREGS): Remove definition.
Diffstat (limited to 'gdb/arch')
-rw-r--r--gdb/arch/xtensa.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/arch/xtensa.h b/gdb/arch/xtensa.h
index 2c328c8970..63bbec60d8 100644
--- a/gdb/arch/xtensa.h
+++ b/gdb/arch/xtensa.h
@@ -43,4 +43,6 @@ typedef struct
#define XTENSA_ELF_NGREG (sizeof (xtensa_elf_gregset_t) \
/ sizeof (xtensa_elf_greg_t))
+#define C0_NREGS 16 /* Number of A-registers to track in call0 ABI. */
+
#endif