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/ns32k-tdep.c | |
parent | 07137a112dc3cdf1ceafe58c3c0cdcb79ee5f3d7 (diff) | |
download | gdb-679ce7310245be5d095510574825f4616f6075d8.zip gdb-679ce7310245be5d095510574825f4616f6075d8.tar.gz gdb-679ce7310245be5d095510574825f4616f6075d8.tar.bz2 |
CARP: Delete ABOUT_TO_RETURN across all targets.
Diffstat (limited to 'gdb/ns32k-tdep.c')
-rw-r--r-- | gdb/ns32k-tdep.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gdb/ns32k-tdep.c b/gdb/ns32k-tdep.c index 395bf9b..3edb7f5 100644 --- a/gdb/ns32k-tdep.c +++ b/gdb/ns32k-tdep.c @@ -76,6 +76,17 @@ ns32k_localcount (enter_pc) return localcount; } + +/* Nonzero if instruction at PC is a return instruction. */ + +static int +ns32k_about_to_return (pc) + CORE_ADDR pc; +{ + return (read_memory_integer (pc, 1) == 0x12); +} + + /* * Get the address of the enter opcode for the function * containing PC, if there is an enter for the function, @@ -94,7 +105,7 @@ ns32k_get_enter_addr (pc) if (pc == 0) return 0; - if (ABOUT_TO_RETURN (pc)) + if (ns32k_about_to_return (pc)) return 1; /* after exit */ enter_addr = get_pc_function_start (pc); |