aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-15 03:56:30 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-15 03:56:30 +0000
commit3339cf8b68bc5b7f14a4d255daae2a06b8dd5d77 (patch)
tree51353446cf61630bafa6b2b4f47af4f8db6d9c17 /gdb/arch-utils.c
parentb02eeafb146d5938518304f2b29697ed3c53f82d (diff)
downloadgdb-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/arch-utils.c')
-rw-r--r--gdb/arch-utils.c19
1 files changed, 19 insertions, 0 deletions
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;