diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-11-26 11:13:01 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-11-26 11:13:01 +0000 |
commit | 679ce7310245be5d095510574825f4616f6075d8 (patch) | |
tree | b95c57e35f9181090765291a2fa107a8f4472406 /gdb/alpha-tdep.c | |
parent | 07137a112dc3cdf1ceafe58c3c0cdcb79ee5f3d7 (diff) | |
download | ppe42-binutils-679ce7310245be5d095510574825f4616f6075d8.tar.gz ppe42-binutils-679ce7310245be5d095510574825f4616f6075d8.zip |
CARP: Delete ABOUT_TO_RETURN across all targets.
Diffstat (limited to 'gdb/alpha-tdep.c')
-rw-r--r-- | gdb/alpha-tdep.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c index d64ab49bf6..2382be1453 100644 --- a/gdb/alpha-tdep.c +++ b/gdb/alpha-tdep.c @@ -399,6 +399,18 @@ alpha_saved_pc_after_call (frame) static struct alpha_extra_func_info temp_proc_desc; static struct frame_saved_regs temp_saved_regs; +/* Nonzero if instruction at PC is a return instruction. "ret + $zero,($ra),1" on alpha. */ + +static int +alpha_about_to_return (pc) + CORE_ADDR pc; +{ + return read_memory_integer (pc, 4) == 0x6bfa8001; +} + + + /* This fencepost looks highly suspicious to me. Removing it also seems suspicious as it could affect remote debugging across serial lines. */ @@ -449,8 +461,8 @@ Otherwise, you told GDB there was a function where there isn't one, or\n\ return 0; } - else if (ABOUT_TO_RETURN(start_pc)) - break; + else if (alpha_about_to_return (start_pc)) + break; start_pc += 4; /* skip return */ return start_pc; |