aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-05-10 11:54:15 -0600
committerTom Tromey <tromey@adacore.com>2024-05-10 13:22:25 -0600
commite14f6ec969d788b73ac61f61e8c623536cda1cad (patch)
tree07adc8b895a95a5e2eaea163efd9575f3060c186 /gdb/arch-utils.c
parent04e63f26ba5f661fe28503e9aeb99fbdc5ea9a7b (diff)
downloadgdb-e14f6ec969d788b73ac61f61e8c623536cda1cad.zip
gdb-e14f6ec969d788b73ac61f61e8c623536cda1cad.tar.gz
gdb-e14f6ec969d788b73ac61f61e8c623536cda1cad.tar.bz2
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>
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r--gdb/arch-utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 7814565..83e2947 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -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. */