aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/d30v
diff options
context:
space:
mode:
authorDavid Taylor <taylor@redhat.com>1997-12-19 06:55:44 +0000
committerDavid Taylor <taylor@redhat.com>1997-12-19 06:55:44 +0000
commit36985eca91e57964101b084ca7e8772c11660d3c (patch)
treebebc89d32608c0f3df77be0dd9004b9e9bb410d7 /gdb/config/d30v
parent76b534725e187fa0477cbe161c2b3f8690e3b2f0 (diff)
downloadgdb-36985eca91e57964101b084ca7e8772c11660d3c.zip
gdb-36985eca91e57964101b084ca7e8772c11660d3c.tar.gz
gdb-36985eca91e57964101b084ca7e8772c11660d3c.tar.bz2
improved end-of-stack handling.
Diffstat (limited to 'gdb/config/d30v')
-rw-r--r--gdb/config/d30v/tm-d30v.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/gdb/config/d30v/tm-d30v.h b/gdb/config/d30v/tm-d30v.h
index a1a5b58..01aee67 100644
--- a/gdb/config/d30v/tm-d30v.h
+++ b/gdb/config/d30v/tm-d30v.h
@@ -218,16 +218,11 @@ extern void d30v_init_extra_frame_info PARAMS (( int fromleaf, struct frame_info
#define FRAME_CHAIN(FRAME) d30v_frame_chain(FRAME)
#if 0
-#define FRAME_CHAIN_VALID(chain,frame) \
- ((chain) != 0 && (frame) != 0 && (frame)->pc > IMEM_START)
-#else
-#if 0
#define FRAME_CHAIN_VALID(chain,fi) \
- ((chain) != 0 && (fi) != 0 && (fi)->frame <= STACK_START)
+ ((chain) != 0 && (fi) != 0 && (fi)->return_pc != 0)
#else
#define FRAME_CHAIN_VALID(chain,fi) \
- ((chain) != 0 && (fi) != 0 && (fi)->return_pc != 0)
-#endif
+ ((chain) != 0 && (fi) != 0 && (fi)->frame <= chain)
#endif
#define FRAME_SAVED_PC(FRAME) ((FRAME)->return_pc)
#define FRAME_ARGS_ADDRESS(fi) (fi)->frame