From: Sandra Loosemore Date: Wed, 26 Mar 2014 04:00:17 +0000 (-0700) Subject: Fix type of "fp" and other registers for Nios II. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e54db15c3ce69a7b3d6542066abdea36e7f8a79;p=binutils-gdb.git Fix type of "fp" and other registers for Nios II. 2014-03-25 Sandra Loosemore gdb/ * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and "ra" registers. * features/nios2-linux.c: Regenerated. * features/nios2.c: Regenerated. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 74e20a4b1ba..60a81afa2ff 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2014-03-25 Sandra Loosemore + + * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and + "ra" registers. + * features/nios2-linux.c: Regenerated. + * features/nios2.c: Regenerated. + 2014-03-25 Pedro Alves * cli/cli-script.c (script_from_file): Force the interpreter to diff --git a/gdb/features/nios2-cpu.xml b/gdb/features/nios2-cpu.xml index 7f0d4492748..8fb524698d2 100644 --- a/gdb/features/nios2-cpu.xml +++ b/gdb/features/nios2-cpu.xml @@ -33,12 +33,12 @@ - + - - + + - + diff --git a/gdb/features/nios2-linux.c b/gdb/features/nios2-linux.c index ea61cf884f5..3288f79d0b7 100644 --- a/gdb/features/nios2-linux.c +++ b/gdb/features/nios2-linux.c @@ -43,12 +43,12 @@ initialize_tdesc_nios2_linux (void) tdesc_create_reg (feature, "r23", 23, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "et", 24, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "bt", 25, 1, NULL, 32, "uint32"); - tdesc_create_reg (feature, "gp", 26, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "gp", 26, 1, NULL, 32, "data_ptr"); tdesc_create_reg (feature, "sp", 27, 1, NULL, 32, "data_ptr"); - tdesc_create_reg (feature, "fp", 28, 1, NULL, 32, "uint32"); - tdesc_create_reg (feature, "ea", 29, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "fp", 28, 1, NULL, 32, "data_ptr"); + tdesc_create_reg (feature, "ea", 29, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "sstatus", 30, 1, NULL, 32, "uint32"); - tdesc_create_reg (feature, "ra", 31, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "ra", 31, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "pc", 32, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "status", 33, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "estatus", 34, 1, NULL, 32, "uint32"); diff --git a/gdb/features/nios2.c b/gdb/features/nios2.c index 8e0049df1d3..0cedc129c26 100644 --- a/gdb/features/nios2.c +++ b/gdb/features/nios2.c @@ -41,12 +41,12 @@ initialize_tdesc_nios2 (void) tdesc_create_reg (feature, "r23", 23, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "et", 24, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "bt", 25, 1, NULL, 32, "uint32"); - tdesc_create_reg (feature, "gp", 26, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "gp", 26, 1, NULL, 32, "data_ptr"); tdesc_create_reg (feature, "sp", 27, 1, NULL, 32, "data_ptr"); - tdesc_create_reg (feature, "fp", 28, 1, NULL, 32, "uint32"); - tdesc_create_reg (feature, "ea", 29, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "fp", 28, 1, NULL, 32, "data_ptr"); + tdesc_create_reg (feature, "ea", 29, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "sstatus", 30, 1, NULL, 32, "uint32"); - tdesc_create_reg (feature, "ra", 31, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "ra", 31, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "pc", 32, 1, NULL, 32, "code_ptr"); tdesc_create_reg (feature, "status", 33, 1, NULL, 32, "uint32"); tdesc_create_reg (feature, "estatus", 34, 1, NULL, 32, "uint32");