From: Max Filippov Date: Wed, 22 Feb 2017 01:14:37 +0000 (-0800) Subject: gdb: gdbserver: xtensa: make C0_NREGS available X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c56054f9a80e157e3d2d5109821abd191b68f0ea;p=binutils-gdb.git 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 * arch/xtensa.h (C0_NREGS): Add definition. * xtensa-tdep.c (C0_NREGS): Remove definition. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0490511ed38..5687fada5b5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-03-27 Max Filippov + + * arch/xtensa.h (C0_NREGS): Add definition. + * xtensa-tdep.c (C0_NREGS): Remove definition. + 2017-03-27 Max Filippov * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue): diff --git a/gdb/arch/xtensa.h b/gdb/arch/xtensa.h index 2c328c89709..63bbec60d88 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 diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c index efbd5ab1b54..0000155b52b 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. */