Change gdbarch_inner_than to return bool

A recent patch from Andrew pointed out that gdbarch_inner_than returns
'int', while it should really return 'bool'.

Approved-By: Pedro Alves <pedro@palves.net>
This commit is contained in:
Tom Tromey
2024-05-10 11:54:15 -06:00
parent 04e63f26ba
commit e14f6ec969
7 changed files with 13 additions and 13 deletions

View File

@@ -173,16 +173,16 @@ default_code_of_frame_writable (struct gdbarch *gdbarch,
/* Helper functions for gdbarch_inner_than */
int
bool
core_addr_lessthan (CORE_ADDR lhs, CORE_ADDR rhs)
{
return (lhs < rhs);
return lhs < rhs;
}
int
bool
core_addr_greaterthan (CORE_ADDR lhs, CORE_ADDR rhs)
{
return (lhs > rhs);
return lhs > rhs;
}
/* Misc helper functions for targets. */