From 6d94535fc68e1fd06816c5685166ebcec56119ce Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 22 Oct 2019 16:47:27 -0600 Subject: Change some psymtab fields to bool This changes a few fields in partial_symtab to have type bool. gdb/ChangeLog 2020-01-26 Tom Tromey * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. * psymtab.c (psym_print_stats): Update. * psympriv.h (struct partial_symtab) : Now bool. * mdebugread.c (psymtab_to_symtab_1): Update. * dwarf2read.c (create_type_unit_group, create_partial_symtab) (build_type_psymtabs_reader, psymtab_to_symtab_1) (process_full_comp_unit, process_full_type_unit): Update. * dbxread.c (dbx_psymtab_to_symtab_1): Update. * ctfread.c (psymtab_to_symtab): Update. Change-Id: I206761d083493589049ea0bc785ed6542339234d --- gdb/psympriv.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gdb/psympriv.h') diff --git a/gdb/psympriv.h b/gdb/psympriv.h index dc89db2..ce28112 100644 --- a/gdb/psympriv.h +++ b/gdb/psympriv.h @@ -239,21 +239,21 @@ struct partial_symtab int statics_offset = 0; int n_static_syms = 0; - /* Non-zero if the symtab corresponding to this psymtab has been - readin. This is located here so that this structure packs better - on 64-bit systems. */ + /* True if the symtab corresponding to this psymtab has been readin. + This is located here so that this structure packs better on + 64-bit systems. */ - unsigned char readin = 0; + bool readin = false; /* True iff objfile->psymtabs_addrmap is properly populated for this partial_symtab. For discontiguous overlapping psymtabs is the only usable info in PSYMTABS_ADDRMAP. */ - unsigned char psymtabs_addrmap_supported = 0; + bool psymtabs_addrmap_supported = false; /* True if the name of this partial symtab is not a source file name. */ - unsigned char anonymous = 0; + bool anonymous = false; /* A flag that is temporarily used when searching psymtabs. */ -- cgit v1.1