diff options
author | Christian Biesinger <cbiesinger@google.com> | 2019-09-24 16:43:18 -0500 |
---|---|---|
committer | Christian Biesinger <cbiesinger@google.com> | 2019-09-26 11:36:40 -0500 |
commit | ececd218c5254902db3301d700546f6702112c85 (patch) | |
tree | 4f99db1e48244cf2e3d86b867a90314dcf6d7777 /gdb/blockframe.c | |
parent | 27a900b8657d8e20a24026bb3485a5f6c9729615 (diff) | |
download | gdb-ececd218c5254902db3301d700546f6702112c85.zip gdb-ececd218c5254902db3301d700546f6702112c85.tar.gz gdb-ececd218c5254902db3301d700546f6702112c85.tar.bz2 |
Convert symtab.h function signatures to use bool instead of int
gdb/ChangeLog:
2019-09-26 Christian Biesinger <cbiesinger@google.com>
* blockframe.c (find_pc_partial_function): Change return type to bool.
* elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
* minsyms.c (in_gnu_ifunc_stub): Likewise.
(stub_gnu_ifunc_resolve_name): Likewise.
* symtab.c (compare_filenames_for_search): Likewise.
(compare_glob_filenames_for_search): Likewise.
(matching_obj_sections): Likewise.
(symbol_matches_domain): Likewise.
(find_line_symtab): Change out param EXACT_MATCH to bool *.
(find_line_pc): Change return type to bool.
(find_line_pc_range): Likewise.
(producer_is_realview): Likewise.
* symtab.h (symbol_matches_domain): Likewise.
(find_pc_partial_function): Likewise.
(find_pc_line_pc_range): Likewise.
(in_gnu_ifunc_stub): Likewise.
(struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
(find_line_pc): Likewise.
(find_line_pc_range): Likewise.
(matching_obj_sections): Likewise.
(find_line_symtab): Change out parameter to bool.
(producer_is_realview): Change return type to bool.
(compare_filenames_for_search): Likewise.
(compare_glob_filenames_for_search): Likewise.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r-- | gdb/blockframe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c index 4462274..a3f82ef 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -209,7 +209,7 @@ clear_pc_function_cache (void) /* See symtab.h. */ -int +bool find_pc_partial_function (CORE_ADDR pc, const char **name, CORE_ADDR *address, CORE_ADDR *endaddr, const struct block **block) { @@ -333,7 +333,7 @@ find_pc_partial_function (CORE_ADDR pc, const char **name, CORE_ADDR *address, *endaddr = 0; if (block != nullptr) *block = nullptr; - return 0; + return false; } cache_pc_function_low = BMSYMBOL_VALUE_ADDRESS (msymbol); @@ -374,7 +374,7 @@ find_pc_partial_function (CORE_ADDR pc, const char **name, CORE_ADDR *address, if (block != nullptr) *block = cache_pc_function_block; - return 1; + return true; } /* See symtab.h. */ |