diff options
author | Christian Biesinger <cbiesinger@google.com> | 2019-09-10 15:37:50 -0500 |
---|---|---|
committer | Christian Biesinger <cbiesinger@google.com> | 2019-09-11 12:43:45 -0500 |
commit | 67547d896b0593b0fa62e23ac68c483a7e8566e2 (patch) | |
tree | 669833e9a12c28896bd0003424a07e1c032a8892 /gdb/psymtab.c | |
parent | 64b2d4a0a4e4f80d2aa2e52c6eec3186e76fc397 (diff) | |
download | gdb-67547d896b0593b0fa62e23ac68c483a7e8566e2.zip gdb-67547d896b0593b0fa62e23ac68c483a7e8566e2.tar.gz gdb-67547d896b0593b0fa62e23ac68c483a7e8566e2.tar.bz2 |
Change the type of copy_names from int to bool
This parameter is really a boolean, so change the type accordingly
and update the callers.
This is for symbol_set_names, add_psymbol_to_bcache, and
add_psymbol_to_list.
minimal_symbol_reader::record_full was already passing a bool
to symbol_set_names.
gdb/ChangeLog:
2019-09-11 Christian Biesinger <cbiesinger@google.com>
* dbxread.c (read_dbx_symtab): Update.
* dwarf2read.c (load_partial_dies): Update.
* mdebugread.c (parse_partial_symbols): Update.
(handle_psymbol_enumerators): Update.
* psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
* psymtab.c (add_psymbol_to_bcache): Likewise.
(add_psymbol_to_list): Likewise.
* symtab.c (symbol_set_names): Likewise.
* symtab.h (symbol_set_names): Likewise.
* xcoffread.c (scan_xcoff_symtab): Update.
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r-- | gdb/psymtab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 1f5f492..e9cc8c3 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -1558,7 +1558,7 @@ psymbol_compare (const void *addr1, const void *addr2, int length) different domain (or address) is possible and correct. */ static struct partial_symbol * -add_psymbol_to_bcache (const char *name, int namelength, int copy_name, +add_psymbol_to_bcache (const char *name, int namelength, bool copy_name, domain_enum domain, enum address_class theclass, short section, @@ -1602,7 +1602,7 @@ append_psymbol_to_list (std::vector<partial_symbol *> *list, Return the partial symbol that has been added. */ void -add_psymbol_to_list (const char *name, int namelength, int copy_name, +add_psymbol_to_list (const char *name, int namelength, bool copy_name, domain_enum domain, enum address_class theclass, short section, |