From f6b3ad544063314a1e7fcaa703b5e29f5ff10780 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 15 Feb 2022 09:04:01 -0700 Subject: Add constructor to bound_minimal_symbol This adds a constructor to bound_minimal_symbol, to avoid a build failure with clang that Simon pointed out. I also took the opportunity to remove some redundant initializations, and to change one use of push_back to emplace_back, as suggested by Simon. --- gdb/minsyms.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gdb/minsyms.h') diff --git a/gdb/minsyms.h b/gdb/minsyms.h index ed31d32..5197024 100644 --- a/gdb/minsyms.h +++ b/gdb/minsyms.h @@ -28,6 +28,14 @@ struct type; struct bound_minimal_symbol { + bound_minimal_symbol (struct minimal_symbol *msym, struct objfile *objf) + : minsym (msym), + objfile (objf) + { + } + + bound_minimal_symbol () = default; + /* The minimal symbol that was found, or NULL if no minimal symbol was found. */ -- cgit v1.1