diff options
Diffstat (limited to 'gdb/ctfread.c')
-rw-r--r-- | gdb/ctfread.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/ctfread.c b/gdb/ctfread.c index d8606d3..e568f15 100644 --- a/gdb/ctfread.c +++ b/gdb/ctfread.c @@ -1,6 +1,6 @@ /* Compact ANSI-C Type Format (CTF) support in GDB. - Copyright (C) 2019-2024 Free Software Foundation, Inc. + Copyright (C) 2019-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -323,9 +323,8 @@ 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 (current_program_space, name, of); if (msym.minsym != NULL) { sym->set_value_address (msym.value_address ()); @@ -1461,7 +1460,7 @@ ctf_psymtab_type_cb (ctf_id_t tid, void *arg) { struct ctf_context *ccp; uint32_t kind; - short section = -1; + int section = -1; ccp = (struct ctf_context *) arg; |