diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-11-29 07:41:36 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-11-29 07:41:36 +0000 |
commit | 8743fc885f33a57c09d1822b6fd5d6f6cc99ec9b (patch) | |
tree | d2a66b076f54b73533ad7a7241e9cb27489406cf /gdb/z8k-tdep.c | |
parent | 3a0c96a9966a85f4205558490e1281471c34980f (diff) | |
download | gdb-8743fc885f33a57c09d1822b6fd5d6f6cc99ec9b.zip gdb-8743fc885f33a57c09d1822b6fd5d6f6cc99ec9b.tar.gz gdb-8743fc885f33a57c09d1822b6fd5d6f6cc99ec9b.tar.bz2 |
CARP:
Convert ADDR_BITS_REMOVE to a function.
Diffstat (limited to 'gdb/z8k-tdep.c')
-rw-r--r-- | gdb/z8k-tdep.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/z8k-tdep.c b/gdb/z8k-tdep.c index 5696056..29e9f6b 100644 --- a/gdb/z8k-tdep.c +++ b/gdb/z8k-tdep.c @@ -31,6 +31,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "dis-asm.h" #include "gdbcore.h" + /* Return the saved PC from this frame. If the frame has a memory copy of SRP_REGNUM, use that. If not, @@ -143,10 +144,10 @@ z8k_skip_prologue (start_pc) } CORE_ADDR -addr_bits_remove (x) - CORE_ADDR x; +z8k_addr_bits_remove (addr) + CORE_ADDR addr; { - return x & PTR_MASK; + return (addr & PTR_MASK); } int @@ -293,7 +294,7 @@ frame_find_saved_regs (fip, fsrp) int saved_pc_after_call () { - return addr_bits_remove + return ADDR_BITS_REMOVE (read_memory_integer (read_register (SP_REGNUM), PTR_SIZE)); } |