aboutsummaryrefslogtreecommitdiff
path: root/binutils/rclex.c
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2017-05-23 09:06:55 +0100
committerYao Qi <yao.qi@linaro.org>2017-06-20 11:34:12 +0100
commitfdaa7052f666655b3e0b1c64957fbff5a3358294 (patch)
tree90ec496328cac93493d84ba15d9f03cd1218f0e7 /binutils/rclex.c
parent73fa9c98e14d6edc57a1cc0a9b428cb6c090c2e9 (diff)
downloadgdb-fdaa7052f666655b3e0b1c64957fbff5a3358294.zip
gdb-fdaa7052f666655b3e0b1c64957fbff5a3358294.tar.gz
gdb-fdaa7052f666655b3e0b1c64957fbff5a3358294.tar.bz2
Adjust code generated by regformats/regdat.sh
regformats/regdat.sh generate some *-generated.c files when GDBserver is built. Each .c file has some static variables, which are only used within function init_registers_XXX, like this, static struct reg regs_i386_linux[] = { { "eax", 0, 32 }, { "ecx", 32, 32 }, ... }; static const char *expedite_regs_i386_linux[] = { "ebp", "esp", "eip", 0 }; static const char *xmltarget_i386_linux = "i386-linux.xml"; void init_registers_i386_linux (void) { ... } This patch moves these static variables' definitions to function init_registers_XXX, so the generated files look like this, void init_registers_i386_linux (void) { static struct target_desc tdesc_i386_linux_s; struct target_desc *result = &tdesc_i386_linux_s; static struct reg regs_i386_linux[] = { ... }; static const char *expedite_regs_i386_linux[] = { "ebp", "esp", "eip", 0 }; static const char *xmltarget_i386_linux = "i386-linux.xml"; ... } gdb: 2017-06-06 Yao Qi <yao.qi@linaro.org> * regformats/regdat.sh: Adjust code order.
Diffstat (limited to 'binutils/rclex.c')
0 files changed, 0 insertions, 0 deletions