diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-05-15 03:56:30 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-05-15 03:56:30 +0000 |
commit | 3339cf8b68bc5b7f14a4d255daae2a06b8dd5d77 (patch) | |
tree | 51353446cf61630bafa6b2b4f47af4f8db6d9c17 /gdb | |
parent | b02eeafb146d5938518304f2b29697ed3c53f82d (diff) | |
download | gdb-3339cf8b68bc5b7f14a4d255daae2a06b8dd5d77.zip gdb-3339cf8b68bc5b7f14a4d255daae2a06b8dd5d77.tar.gz gdb-3339cf8b68bc5b7f14a4d255daae2a06b8dd5d77.tar.bz2 |
Move core_addr_lessthan and core_addr_greaterthan to arch-utils.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/arch-utils.c | 19 | ||||
-rw-r--r-- | gdb/arch-utils.h | 4 | ||||
-rw-r--r-- | gdb/defs.h | 4 | ||||
-rw-r--r-- | gdb/utils.c | 17 |
5 files changed, 30 insertions, 21 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5a811b8..3394791 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +Mon May 15 13:25:57 2000 Andrew Cagney <cagney@b1.cygnus.com> + + * defs.h (core_addr_greaterthan, core_addr_lessthan), utils.c + (core_addr_greaterthan, core_addr_lessthan): Move from here. + * arch-utils.h (core_addr_greaterthan, core_addr_lessthan), + arch-utils.c (core_addr_greaterthan, core_addr_lessthan): To here. + Mon May 15 12:07:55 2000 Andrew Cagney <cagney@b1.cygnus.com> * printcmd.c (print_frame_args), stack.c (print_frame), command.c diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index aadbebe..a012b42 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -144,6 +144,25 @@ generic_prologue_frameless_p (CORE_ADDR ip) } +/* Helper functions for INNER_THAN */ + +int +core_addr_lessthan (lhs, rhs) + CORE_ADDR lhs; + CORE_ADDR rhs; +{ + return (lhs < rhs); +} + +int +core_addr_greaterthan (lhs, rhs) + CORE_ADDR lhs; + CORE_ADDR rhs; +{ + return (lhs > rhs); +} + + /* */ extern initialize_file_ftype __initialize_gdbarch_utils; diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h index 608dfc0..5762cdd 100644 --- a/gdb/arch-utils.h +++ b/gdb/arch-utils.h @@ -59,4 +59,8 @@ extern gdbarch_remote_translate_xfer_address_ftype generic_remote_translate_xfer changed. */ extern gdbarch_prologue_frameless_p_ftype generic_prologue_frameless_p; +/* The only possible cases for inner_than. */ +extern int core_addr_lessthan (CORE_ADDR lhs, CORE_ADDR rhs); +extern int core_addr_greaterthan (CORE_ADDR lhs, CORE_ADDR rhs); + #endif @@ -106,10 +106,6 @@ typedef bfd_vma CORE_ADDR; #endif /* ! LONGEST */ -extern int core_addr_lessthan (CORE_ADDR lhs, CORE_ADDR rhs); -extern int core_addr_greaterthan (CORE_ADDR lhs, CORE_ADDR rhs); - - #ifndef min #define min(a, b) ((a) < (b) ? (a) : (b)) #endif diff --git a/gdb/utils.c b/gdb/utils.c index abd6ecc..aa1fccd 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -3010,20 +3010,3 @@ preg_nz (reg) } return preg_str; } - -/* Helper functions for INNER_THAN */ -int -core_addr_lessthan (lhs, rhs) - CORE_ADDR lhs; - CORE_ADDR rhs; -{ - return (lhs < rhs); -} - -int -core_addr_greaterthan (lhs, rhs) - CORE_ADDR lhs; - CORE_ADDR rhs; -{ - return (lhs > rhs); -} |