aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/i960
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-11-30 10:56:16 +0000
committerAndrew Cagney <cagney@redhat.com>1998-11-30 10:56:16 +0000
commitb69600940692d11967b2ae8ceabed2c6c2474c37 (patch)
treed6b88df7123e7340631685d782fe3f87310793e7 /gdb/config/i960
parent8743fc885f33a57c09d1822b6fd5d6f6cc99ec9b (diff)
downloadgdb-b69600940692d11967b2ae8ceabed2c6c2474c37.zip
gdb-b69600940692d11967b2ae8ceabed2c6c2474c37.tar.gz
gdb-b69600940692d11967b2ae8ceabed2c6c2474c37.tar.bz2
CARP:
Cleanup FRAME_CHAIN_VALID. Replace all macro's with functions.
Diffstat (limited to 'gdb/config/i960')
-rw-r--r--gdb/config/i960/tm-mon960.h11
-rw-r--r--gdb/config/i960/tm-nindy960.h9
-rw-r--r--gdb/config/i960/tm-vx960.h2
3 files changed, 15 insertions, 7 deletions
diff --git a/gdb/config/i960/tm-mon960.h b/gdb/config/i960/tm-mon960.h
index 3e7902a..e441e05 100644
--- a/gdb/config/i960/tm-mon960.h
+++ b/gdb/config/i960/tm-mon960.h
@@ -24,6 +24,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "i960/tm-i960.h"
+/* forward declarations */
+#ifdef __STDC__
+struct frame_info;
+#endif
+
/* redefined from tm-i960.h */
/* Number of machine registers */
#undef NUM_REGS
@@ -51,10 +56,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
since it differs between Nindy, Mon960 and VxWorks, the currently supported
target types. */
-#define FRAME_CHAIN_VALID(chain, thisframe) \
- mon960_frame_chain_valid (chain, thisframe)
-
-extern int mon960_frame_chain_valid(); /* See i960-tdep.c */
+extern int mon960_frame_chain_valid PARAMS ((CORE_ADDR, struct frame_info *));
+#define FRAME_CHAIN_VALID(chain, thisframe) mon960_frame_chain_valid (chain, thisframe)
/* Sequence of bytes for breakpoint instruction */
diff --git a/gdb/config/i960/tm-nindy960.h b/gdb/config/i960/tm-nindy960.h
index 094781f..d0c46c0 100644
--- a/gdb/config/i960/tm-nindy960.h
+++ b/gdb/config/i960/tm-nindy960.h
@@ -24,6 +24,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "i960/tm-i960.h"
+/* forward declarations */
+#ifdef __STDC__
+struct frame_info;
+#endif
+
/* Override the standard gdb prompt when compiled for this target. */
#define DEFAULT_PROMPT "(gdb960) "
@@ -80,8 +85,8 @@ nindy_before_main_loop(); /* In remote-nindy.c */
since it differs between NINDY and VxWorks, the two currently supported
targets types. */
-#define FRAME_CHAIN_VALID(chain, thisframe) \
- nindy_frame_chain_valid (chain, thisframe)
+extern int nindy_frame_chain_valid PARAMS ((CORE_ADDR, struct frame_info *));
+#define FRAME_CHAIN_VALID(chain, thisframe) nindy_frame_chain_valid (chain, thisframe)
extern int
nindy_frame_chain_valid(); /* See nindy-tdep.c */
diff --git a/gdb/config/i960/tm-vx960.h b/gdb/config/i960/tm-vx960.h
index 2d56b43..17e2811 100644
--- a/gdb/config/i960/tm-vx960.h
+++ b/gdb/config/i960/tm-vx960.h
@@ -36,7 +36,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* We are guaranteed to have a zero frame pointer at bottom of stack, too. */
-#define FRAME_CHAIN_VALID(chain, thisframe) (chain != 0)
+#define FRAME_CHAIN_VALID(chain, thisframe) nonnull_frame_chain_valid (chain, thisframe)
/* Breakpoint patching is handled at the target end in VxWorks. */
/* #define BREAKPOINT {0x00, 0x3e, 0x00, 0x66} */