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/d10v-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/d10v-tdep.c')
-rw-r--r-- | gdb/d10v-tdep.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c index d0f2e80..f4b52f6 100644 --- a/gdb/d10v-tdep.c +++ b/gdb/d10v-tdep.c @@ -36,6 +36,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ void d10v_frame_find_saved_regs PARAMS ((struct frame_info *fi, struct frame_saved_regs *fsr)); +int +d10v_frame_chain_valid (chain, frame) + CORE_ADDR chain; + struct frame_info *frame; /* not used here */ +{ + return ((chain) != 0 && (frame) != 0 && (frame)->pc > IMEM_START); +} + + /* Should we use EXTRACT_STRUCT_VALUE_ADDRESS instead of EXTRACT_RETURN_VALUE? GCC_P is true if compiled with gcc and TYPE is the type (which is known to be struct, union or array). |