aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-10-22 16:47:27 -0600
committerTom Tromey <tom@tromey.com>2020-01-26 16:40:21 -0700
commit6d94535fc68e1fd06816c5685166ebcec56119ce (patch)
tree1d799652296048be6aa06b923cc4a2520bc653d6 /gdb/dwarf2read.c
parent6f17252b76dbe8bedd32b6df6ce52af707bfb04b (diff)
downloadgdb-6d94535fc68e1fd06816c5685166ebcec56119ce.zip
gdb-6d94535fc68e1fd06816c5685166ebcec56119ce.tar.gz
gdb-6d94535fc68e1fd06816c5685166ebcec56119ce.tar.bz2
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 <tom@tromey.com> * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. * psymtab.c (psym_print_stats): Update. * psympriv.h (struct partial_symtab) <readin, psymtabs_addrmap_supported, anonymous>: 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
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index a81a77a..6394410 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -7945,7 +7945,7 @@ create_type_unit_group (struct dwarf2_cu *cu, sect_offset line_offset_struct)
name = string_printf ("<type_units_at_0x%x>", line_offset);
pst = create_partial_symtab (per_cu, name.c_str ());
- pst->anonymous = 1;
+ pst->anonymous = true;
}
tu_group->hash.dwo_unit = cu->dwo_unit;
@@ -8029,7 +8029,7 @@ create_partial_symtab (struct dwarf2_per_cu_data *per_cu, const char *name)
pst = start_psymtab_common (objfile, name, 0);
- pst->psymtabs_addrmap_supported = 1;
+ pst->psymtabs_addrmap_supported = true;
/* This is the glue that links PST into GDB's symbol API. */
pst->read_symtab_private = per_cu;
@@ -8241,7 +8241,7 @@ build_type_psymtabs_reader (const struct die_reader_specs *reader,
prepare_one_comp_unit (cu, type_unit_die, language_minimal);
pst = create_partial_symtab (per_cu, "");
- pst->anonymous = 1;
+ pst->anonymous = true;
first_die = load_partial_dies (reader, info_ptr, 1);
@@ -9720,7 +9720,7 @@ psymtab_to_symtab_1 (struct partial_symtab *pst)
{
/* It's an include file, no symbols to read for it.
Everything is in the parent symtab. */
- pst->readin = 1;
+ pst->readin = true;
return;
}
@@ -10479,7 +10479,7 @@ process_full_comp_unit (struct dwarf2_per_cu_data *per_cu,
{
struct partial_symtab *pst = per_cu->v.psymtab;
pst->compunit_symtab = cust;
- pst->readin = 1;
+ pst->readin = true;
}
/* Push it for inclusion processing later. */
@@ -10559,7 +10559,7 @@ process_full_type_unit (struct dwarf2_per_cu_data *per_cu,
{
struct partial_symtab *pst = per_cu->v.psymtab;
pst->compunit_symtab = cust;
- pst->readin = 1;
+ pst->readin = true;
}
/* Not needed any more. */