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/psymtab.c | |
parent | 5c14cc552d3b5c0dddb17c2f81ca8af137b0b254 (diff) | |
download | gdb-f6b3ad544063314a1e7fcaa703b5e29f5ff10780.zip gdb-f6b3ad544063314a1e7fcaa703b5e29f5ff10780.tar.gz gdb-f6b3ad544063314a1e7fcaa703b5e29f5ff10780.tar.bz2 |
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/psymtab.c')
-rw-r--r-- | gdb/psymtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c index ac5009a..2aa1d18 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -1577,7 +1577,7 @@ maintenance_print_psymbols (const char *args, int from_tty) if (address_arg != NULL) { - struct bound_minimal_symbol msymbol = { NULL, NULL }; + struct bound_minimal_symbol msymbol; /* We don't assume each pc has a unique objfile (this is for debugging). */ |