aboutsummaryrefslogtreecommitdiff
path: root/gdb/minsyms.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-02-08 13:41:53 -0700
committerTom Tromey <tromey@adacore.com>2022-02-11 09:23:56 -0700
commit29ba33db77f22a54d97db90cb87c39126efad3db (patch)
tree15d9ced771509549becd510ebcf3dff45f361814 /gdb/minsyms.h
parente951225303b7d0565c985e2d562d3787983ff06f (diff)
downloadgdb-29ba33db77f22a54d97db90cb87c39126efad3db.zip
gdb-29ba33db77f22a54d97db90cb87c39126efad3db.tar.gz
gdb-29ba33db77f22a54d97db90cb87c39126efad3db.tar.bz2
Add initializers to bound_minimal_symbol
This adds initializers to bound_minimal_symbol, allowing for the removal of some calls to memset.
Diffstat (limited to 'gdb/minsyms.h')
-rw-r--r--gdb/minsyms.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/minsyms.h b/gdb/minsyms.h
index 5970cb3..ed31d32 100644
--- a/gdb/minsyms.h
+++ b/gdb/minsyms.h
@@ -31,12 +31,12 @@ struct bound_minimal_symbol
/* The minimal symbol that was found, or NULL if no minimal symbol
was found. */
- struct minimal_symbol *minsym;
+ struct minimal_symbol *minsym = nullptr;
/* If MINSYM is not NULL, then this is the objfile in which the
symbol is defined. */
- struct objfile *objfile;
+ struct objfile *objfile = nullptr;
/* Return the obj_section from OBJFILE for MINSYM. */