aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2025-02-25 16:29:06 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2025-02-25 22:20:43 -0500
commitf563d6cc749f0577bfe3e01426d1eed670870d4c (patch)
tree131c60cedc59c909830265467ae559c96cd4e4ff /gdb
parent0ec9aa4ac33872e90c572f95b738c59aa7568b71 (diff)
downloadbinutils-f563d6cc749f0577bfe3e01426d1eed670870d4c.zip
binutils-f563d6cc749f0577bfe3e01426d1eed670870d4c.tar.gz
binutils-f563d6cc749f0577bfe3e01426d1eed670870d4c.tar.bz2
gdb/dwarf: initialize tu_stats fields
Initialize fields of tu_stats to 0, remove the explicit default initialization of dwarf2_per_bfd::tu_stats. Change-Id: I98b2d5c4171291a3df2569466559174fb7cf32b6 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb')
-rw-r--r--gdb/dwarf2/read.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/dwarf2/read.h b/gdb/dwarf2/read.h
index 0938dac..a7313a6 100644
--- a/gdb/dwarf2/read.h
+++ b/gdb/dwarf2/read.h
@@ -38,12 +38,12 @@ extern struct cmd_list_element *show_dwarf_cmdlist;
struct tu_stats
{
- int nr_uniq_abbrev_tables;
- int nr_symtabs;
- int nr_symtab_sharers;
- int nr_stmt_less_type_units;
- int nr_all_type_units_reallocs;
- int nr_tus;
+ int nr_uniq_abbrev_tables = 0;
+ int nr_symtabs = 0;
+ int nr_symtab_sharers = 0;
+ int nr_stmt_less_type_units = 0;
+ int nr_all_type_units_reallocs = 0;
+ int nr_tus = 0;
};
struct dwarf2_cu;
@@ -529,7 +529,7 @@ public:
/* Type unit statistics, to see how well the scaling improvements
are doing. */
- struct tu_stats tu_stats {};
+ struct tu_stats tu_stats;
/* A table mapping DW_AT_dwo_name values to struct dwo_file objects.
This is NULL if the table hasn't been allocated yet. */