aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r--gdb/objfiles.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index a35aafb..7803ebb 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -167,13 +167,13 @@ struct entry_info
struct objstats
{
/* Number of full symbols read. */
- int n_syms = 0;
+ std::atomic<int> n_syms {0};
/* Number of ".stabs" read (if applicable). */
int n_stabs = 0;
/* Number of types. */
- int n_types = 0;
+ std::atomic<int> n_types {0};
/* Size of stringtable, (if applicable). */
int sz_strtab = 0;