aboutsummaryrefslogtreecommitdiff
path: root/gdb/xtensa-tdep.c
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/xtensa-tdep.c
parenta43986283d61ffd4d7dc9b20c0ecb73cd345206c (diff)
downloadgdb-c56054f9a80e157e3d2d5109821abd191b68f0ea.zip
gdb-c56054f9a80e157e3d2d5109821abd191b68f0ea.tar.gz
gdb-c56054f9a80e157e3d2d5109821abd191b68f0ea.tar.bz2
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/xtensa-tdep.c')
-rw-r--r--gdb/xtensa-tdep.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c
index efbd5ab..0000155 100644
--- a/gdb/xtensa-tdep.c
+++ b/gdb/xtensa-tdep.c
@@ -942,7 +942,6 @@ typedef struct xtensa_windowed_frame_cache
#define C0_MAXOPDS 3 /* Maximum number of operands for prologue
analysis. */
-#define C0_NREGS 16 /* Number of A-registers to track. */
#define C0_CLESV 12 /* Callee-saved registers are here and up. */
#define C0_SP 1 /* Register used as SP. */
#define C0_FP 15 /* Register used as FP. */