aboutsummaryrefslogtreecommitdiff
path: root/gdb/tm-29k.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-09-13 07:22:50 +0000
committerJohn Gilmore <gnu@cygnus>1991-09-13 07:22:50 +0000
commit841c051c44d5423640f593615404820013750402 (patch)
treea8546ad4e6230281c17353116ec9f042c2ecd2f6 /gdb/tm-29k.h
parent7730bd5acd72be89de4d1d5a956d46e691c8b745 (diff)
downloadgdb-841c051c44d5423640f593615404820013750402.zip
gdb-841c051c44d5423640f593615404820013750402.tar.gz
gdb-841c051c44d5423640f593615404820013750402.tar.bz2
* inferior.h: Eliminate CANNOT_EXECUTE_STACK in favor of
defining CALL_DUMMY_LOCATION as BEFORE_TEXT_END. This is because machines that do this will also have to know to set NEED_TEXT_START_END. Besides, it was a redundant way to say the same thing. * tm-29k.h, tm-convex.h, tm-np1.h: Eliminate CANNOT_EXECUTE_STACK, define CALL_DUMMY_LOCATION and NEED_TEXT_START_END.
Diffstat (limited to 'gdb/tm-29k.h')
-rw-r--r--gdb/tm-29k.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/gdb/tm-29k.h b/gdb/tm-29k.h
index fceeb88..5330a23 100644
--- a/gdb/tm-29k.h
+++ b/gdb/tm-29k.h
@@ -344,10 +344,10 @@ CORE_ADDR skip_prologue ();
macros, it doesn't really matter exactly how we
do it. However, note that FRAME_FP is used in two ways in GDB:
(1) as a "magic cookie" which uniquely identifies frames (even over
- calls to the inferior), (2) (in PC_IN_CALL_DUMMY [!CANNOT_EXECUTE_STACK])
+ calls to the inferior), (2) (in PC_IN_CALL_DUMMY [ON_STACK])
as the value of SP_REGNUM before the dummy frame was pushed. These
- two meanings would be incompatible for the 29k if we didn't define
- CANNOT_EXECUTE_STACK (but we do, so don't worry about it).
+ two meanings would be incompatible for the 29k if we defined
+ CALL_DUMMY_LOCATION == ON_STACK (but we don't, so don't worry about it).
Also note that "lr1" below, while called a frame pointer
in the user's guide, has only one function: To determine whether
registers need to be filled in the function epilogue.
@@ -645,12 +645,18 @@ extern void pop_frame ();
STUFF_I16((char *)dummyname + CONST_INSN + 4, fun >> 16);\
}
-/* At least our 29k board has separate data & instruction memories and can't
- execute the data memory. Also, there should be space after text_end;
+/* 29k architecture has separate data & instruction memories -- wired to
+ different pins on the chip -- and can't execute the data memory.
+ Also, there should be space after text_end;
we won't get a SIGSEGV or scribble on data space. */
#define CALL_DUMMY_LOCATION AFTER_TEXT_END
+/* Because of this, we need (as a kludge) to know the addresses of the
+ text section. */
+
+#define NEED_TEXT_START_END
+
/* How to translate register numbers in the .stab's into gdb's internal register
numbers. We don't translate them, but we warn if an invalid register
number is seen. Note that FIXME, we use the value "sym" as an implicit