diff options
author | Tom Tromey <tom@tromey.com> | 2021-03-20 17:23:40 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-03-20 17:23:41 -0600 |
commit | fae2120ba0a6fd9288af24b359bf0e3ab3556cdb (patch) | |
tree | 9e8a50fa40e5e62b17f49248df7a94e38467fb07 /gdb/objfiles.c | |
parent | a8ad4f3c17727fe2c499a9a8f775ccfe877326ac (diff) | |
download | gdb-fae2120ba0a6fd9288af24b359bf0e3ab3556cdb.zip gdb-fae2120ba0a6fd9288af24b359bf0e3ab3556cdb.tar.gz gdb-fae2120ba0a6fd9288af24b359bf0e3ab3556cdb.tar.bz2 |
Change objfile::has_partial_symbols to return bool
This changes objfile::has_partial_symbols and
quick_symbol_functions::has_symbols to return bool.
gdb/ChangeLog
2021-03-20 Tom Tromey <tom@tromey.com>
* objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
* symfile.h (struct quick_symbol_functions) <has_symbols>: Return
bool.
* symfile-debug.c (debug_qf_has_symbols): Return bool.
* psymtab.c (psym_has_symbols): Return bool.
* objfiles.c (objfile::has_partial_symbols): Return bool.
* dwarf2/read.c (dw2_has_symbols): Return bool.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 53ca66d..746f7d1 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -812,11 +812,11 @@ objfile_rebase (struct objfile *objfile, CORE_ADDR slide) /* See objfiles.h. */ -int +bool objfile::has_partial_symbols () { if (!sf) - return 0; + return false; /* If we have not read psymbols, but we have a function capable of reading them, then that is an indication that they are in fact available. Without @@ -824,7 +824,7 @@ objfile::has_partial_symbols () not be present in this objfile. */ if ((flags & OBJF_PSYMTABS_READ) == 0 && sf->sym_read_psymbols != NULL) - return 1; + return true; return sf->qf->has_symbols (this); } |