aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/m68k/tm-vx68.h
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/m68k/tm-vx68.h
parent8743fc885f33a57c09d1822b6fd5d6f6cc99ec9b (diff)
downloadfsf-binutils-gdb-b69600940692d11967b2ae8ceabed2c6c2474c37.zip
fsf-binutils-gdb-b69600940692d11967b2ae8ceabed2c6c2474c37.tar.gz
fsf-binutils-gdb-b69600940692d11967b2ae8ceabed2c6c2474c37.tar.bz2
CARP:
Cleanup FRAME_CHAIN_VALID. Replace all macro's with functions.
Diffstat (limited to 'gdb/config/m68k/tm-vx68.h')
-rw-r--r--gdb/config/m68k/tm-vx68.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/config/m68k/tm-vx68.h b/gdb/config/m68k/tm-vx68.h
index a194b94..e601bda 100644
--- a/gdb/config/m68k/tm-vx68.h
+++ b/gdb/config/m68k/tm-vx68.h
@@ -33,23 +33,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "m68k/tm-m68k.h"
-/* We are guaranteed to have a zero frame pointer at bottom of stack, too. */
-#undef FRAME_CHAIN
-#undef FRAME_CHAIN_VALID
-
/* Takes the current frame-struct pointer and returns the chain-pointer
to get to the calling frame.
If our current frame pointer is zero, we're at the top; else read out
the saved FP from memory pointed to by the current FP. */
+#undef FRAME_CHAIN
#define FRAME_CHAIN(thisframe) ((thisframe)->frame? read_memory_integer ((thisframe)->frame, 4): 0)
/* If the chain pointer is zero (either because the saved value fetched
by FRAME_CHAIN was zero, or because the current FP was zero so FRAME_CHAIN
never fetched anything), we are at the top of the stack. */
+/* We are guaranteed to have a zero frame pointer at bottom of stack, too. */
-#define FRAME_CHAIN_VALID(chain, thisframe) (chain != 0)
+#undef FRAME_CHAIN_VALID
+#define FRAME_CHAIN_VALID(chain, thisframe) nonnull_frame_chain_valid (chain, thisframe)
/* FIXME, Longjmp information stolen from Sun-3 config. Dunno if right. */
/* Offsets (in target ints) into jmp_buf. Not defined by Sun, but at least