diff options
author | Tom Tromey <tromey@adacore.com> | 2024-05-10 11:54:15 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-05-10 13:22:25 -0600 |
commit | e14f6ec969d788b73ac61f61e8c623536cda1cad (patch) | |
tree | 07adc8b895a95a5e2eaea163efd9575f3060c186 /gdb/arch-utils.c | |
parent | 04e63f26ba5f661fe28503e9aeb99fbdc5ea9a7b (diff) | |
download | gdb-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.c | 8 |
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. */ |