aboutsummaryrefslogtreecommitdiff
path: root/gdb/ctfread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ctfread.c')
-rw-r--r--gdb/ctfread.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/ctfread.c b/gdb/ctfread.c
index d8606d3..42009dc 100644
--- a/gdb/ctfread.c
+++ b/gdb/ctfread.c
@@ -323,9 +323,7 @@ get_bitsize (ctf_dict_t *fp, ctf_id_t tid, uint32_t kind)
static void
set_symbol_address (struct objfile *of, struct symbol *sym, const char *name)
{
- struct bound_minimal_symbol msym;
-
- msym = lookup_minimal_symbol (name, nullptr, of);
+ bound_minimal_symbol msym = lookup_minimal_symbol (name, nullptr, of);
if (msym.minsym != NULL)
{
sym->set_value_address (msym.value_address ());