Move core_addr_lessthan and core_addr_greaterthan to arch-utils.

This commit is contained in:
Andrew Cagney 2000-05-15 03:56:30 +00:00
parent b02eeafb14
commit 3339cf8b68
5 changed files with 30 additions and 21 deletions

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -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);
}