aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorMark Alexander <marka@cygnus>1998-09-03 22:59:13 +0000
committerMark Alexander <marka@cygnus>1998-09-03 22:59:13 +0000
commit11ac7952581a92d56abbdcad10ee146fb26e9feb (patch)
treeea61f6183c6d49e639e3bad8adb38fd995dd7b8c /gdb/config
parent3fe41381a6b8095f3afcc15127e9da09aa0d1f63 (diff)
downloadgdb-11ac7952581a92d56abbdcad10ee146fb26e9feb.zip
gdb-11ac7952581a92d56abbdcad10ee146fb26e9feb.tar.gz
gdb-11ac7952581a92d56abbdcad10ee146fb26e9feb.tar.bz2
* config/mn10300/tm-mn10300.h (FP_REGNUM): Redefine to be a
pseudo-register, not the same as a3. (D2_REGNUM, D3_REGNUM, A2_REGNUM, A3_REGNUM): Define. * mn10300-tdep.c (fix_frame_pointer): New function. (set_movm_offsets): Use register number macros instead of hard-coded constants. (mn10300_analyze_prologue): Fix to handle redefinition of FP_REGNUM. (mn10300_frame_chain): Fix to handle redefinition of FP_REGNUM; use register number macros instead of hard-coded constants; add missing parameter to call of mn10300_analyze_prologue. (mn10300_frame_saved_pc): Use register number macros instead of hard-coded constants.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/mn10300/tm-mn10300.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/config/mn10300/tm-mn10300.h b/gdb/config/mn10300/tm-mn10300.h
index 30a195c..242fdc1 100644
--- a/gdb/config/mn10300/tm-mn10300.h
+++ b/gdb/config/mn10300/tm-mn10300.h
@@ -41,8 +41,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
{ "d0", "d1", "d2", "d3", "a0", "a1", "a2", "a3", \
"sp", "pc", "mdr", "psw", "lir", "lar", "", "", \
"", "", "", "", "", "", "", "", \
- "", "", "", "", "", "", "", "" }
+ "", "", "", "", "", "", "", "fp" }
+#define D2_REGNUM 2
+#define D3_REGNUM 3
+#define A2_REGNUM 6
+#define A3_REGNUM 7
#define SP_REGNUM 8
#define PC_REGNUM 9
#define MDR_REGNUM 10
@@ -53,7 +57,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define E0_REGNUM 14
/* end-sanitize-am33 */
-#define FP_REGNUM 7
+/* Pseudo register that contains true address of executing stack frame */
+#define FP_REGNUM 31
/* The breakpoint instruction must be the same size as the smallest
instruction in the instruction set.