diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-11-30 10:56:16 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-11-30 10:56:16 +0000 |
commit | b69600940692d11967b2ae8ceabed2c6c2474c37 (patch) | |
tree | d6b88df7123e7340631685d782fe3f87310793e7 /gdb/d30v-tdep.c | |
parent | 8743fc885f33a57c09d1822b6fd5d6f6cc99ec9b (diff) | |
download | gdb-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/d30v-tdep.c')
-rw-r--r-- | gdb/d30v-tdep.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/d30v-tdep.c b/gdb/d30v-tdep.c index 1add1db..2cdb25d 100644 --- a/gdb/d30v-tdep.c +++ b/gdb/d30v-tdep.c @@ -92,6 +92,19 @@ static void print_flags_command PARAMS ((char *, int)); #define EXTRACT_IMM26(op) ((((op)&0x0ff00000) >> 2) | ((op)&0x0003ffff)) #define EXTRACT_IMM32(opl, opr) ((EXTRACT_UIMM6(opl) << 26)|EXTRACT_IMM26(opr)) + +int +d30v_frame_chain_valid (chain, fi) + CORE_ADDR chain; + struct frame_info *fi; /* not used here */ +{ +#if 0 + return ((chain) != 0 && (fi) != 0 && (fi)->return_pc != 0); +#else + return ((chain) != 0 && (fi) != 0 && (fi)->frame <= chain); +#endif +} + /* Discard from the stack the innermost frame, restoring all saved registers. */ |