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/config | |
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/config')
-rw-r--r-- | gdb/config/h8500/tm-h8500.h | 3 | ||||
-rw-r--r-- | gdb/config/m88k/tm-m88k.h | 3 | ||||
-rw-r--r-- | gdb/config/w65/tm-w65.h | 3 | ||||
-rw-r--r-- | gdb/config/z8k/tm-z8k.h | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/gdb/config/h8500/tm-h8500.h b/gdb/config/h8500/tm-h8500.h index 22e5061..8f7d966 100644 --- a/gdb/config/h8500/tm-h8500.h +++ b/gdb/config/h8500/tm-h8500.h @@ -251,7 +251,8 @@ extern void h8500_pop_frame PARAMS ((void)); typedef unsigned short INSN_WORD; -#define ADDR_BITS_REMOVE(addr) ((addr) & 0xffffff) +extern CORE_ADDR h8500_addr_bits_remove PARAMS ((CORE_ADDR)); +#define ADDR_BITS_REMOVE(addr) h8500_addr_bits_remove (addr) #define read_memory_short(x) (read_memory_integer(x,2) & 0xffff) diff --git a/gdb/config/m88k/tm-m88k.h b/gdb/config/m88k/tm-m88k.h index f5c6dc5..390cdef 100644 --- a/gdb/config/m88k/tm-m88k.h +++ b/gdb/config/m88k/tm-m88k.h @@ -63,7 +63,8 @@ extern CORE_ADDR skip_prologue (); to realize that those two bits are not really a part of the address of an instruction. Shrug. */ -#define ADDR_BITS_REMOVE(addr) ((addr) & ~3) +extern CORE_ADDR m88k_addr_bits_remove PARAMS ((CORE_ADDR)); +#define ADDR_BITS_REMOVE(addr) m88k_addr_bits_remove (addr) /* Immediately after a function call, return the saved pc. Can't always go through the frames for this because on some machines diff --git a/gdb/config/w65/tm-w65.h b/gdb/config/w65/tm-w65.h index 6809f93..2e354bb 100644 --- a/gdb/config/w65/tm-w65.h +++ b/gdb/config/w65/tm-w65.h @@ -191,7 +191,8 @@ extern CORE_ADDR w65_skip_prologue (); typedef unsigned short INSN_WORD; -#define ADDR_BITS_REMOVE(addr) ((addr) & 0xffffff) +extern CORE_ADDR w65_addr_bits_remove PARAMS ((CORE_ADDR)); +#define ADDR_BITS_REMOVE(addr) w65_addr_bits_remove (addr) #define CALL_DUMMY_LENGTH 10 diff --git a/gdb/config/z8k/tm-z8k.h b/gdb/config/z8k/tm-z8k.h index 8800a9c..8ec1356 100644 --- a/gdb/config/z8k/tm-z8k.h +++ b/gdb/config/z8k/tm-z8k.h @@ -263,7 +263,8 @@ extern void z8k_pop_frame PARAMS ((void)); #define SP_ARG0 (1 * 4) -#define ADDR_BITS_REMOVE(x) addr_bits_remove(x) +extern CORE_ADDR z8k_addr_bits_remove PARAMS ((CORE_ADDR)); +#define ADDR_BITS_REMOVE(addr) z8k_addr_bits_remove (addr) int sim_z8001_mode; #define BIG (sim_z8001_mode) |