diff options
author | Tom Tromey <tromey@adacore.com> | 2022-02-15 09:04:01 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-02-18 12:58:35 -0700 |
commit | f6b3ad544063314a1e7fcaa703b5e29f5ff10780 (patch) | |
tree | b0cf39c005a3e84857d0356a09770b370de86e9e /gdb/minsyms.h | |
parent | 5c14cc552d3b5c0dddb17c2f81ca8af137b0b254 (diff) | |
download | binutils-gdb-f6b3ad544063314a1e7fcaa703b5e29f5ff10780.tar.gz |
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.
Diffstat (limited to 'gdb/minsyms.h')
-rw-r--r-- | gdb/minsyms.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/minsyms.h b/gdb/minsyms.h index ed31d32483a..519702494ed 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. */ |