diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-07-16 23:51:59 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-08-12 10:31:09 -0400 |
commit | 03b40f6f55bed82bd16b2a1fd94fb8c8dbf797bf (patch) | |
tree | 6cbaaed5ce62e15621e3c7f21f872459f9be0223 /gdb/machoread.c | |
parent | 10ac7e80c01125d1b2754763066dae35b13e6cb0 (diff) | |
download | fsf-binutils-gdb-03b40f6f55bed82bd16b2a1fd94fb8c8dbf797bf.zip fsf-binutils-gdb-03b40f6f55bed82bd16b2a1fd94fb8c8dbf797bf.tar.gz fsf-binutils-gdb-03b40f6f55bed82bd16b2a1fd94fb8c8dbf797bf.tar.bz2 |
gdb: drop struct keyword when using bound_minimal_symbol
This is a simple find / replace from "struct bound_minimal_symbol" to
"bound_minimal_symbol", to make things shorter and more consisten
througout. In some cases, move variable declarations where first used.
Change-Id: Ica4af11c4ac528aa842bfa49a7afe8fe77a66849
Reviewed-by: Keith Seitz <keiths@redhat.com>
Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/machoread.c')
-rw-r--r-- | gdb/machoread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/machoread.c b/gdb/machoread.c index be68e45..2f2874a 100644 --- a/gdb/machoread.c +++ b/gdb/machoread.c @@ -390,13 +390,13 @@ static CORE_ADDR macho_resolve_oso_sym_with_minsym (struct objfile *main_objfile, asymbol *sym) { /* For common symbol and global symbols, use the min symtab. */ - struct bound_minimal_symbol msym; const char *name = sym->name; if (*name != '\0' && *name == bfd_get_symbol_leading_char (main_objfile->obfd.get ())) ++name; - msym = lookup_minimal_symbol (name, NULL, main_objfile); + + bound_minimal_symbol msym = lookup_minimal_symbol (name, NULL, main_objfile); if (msym.minsym == NULL) { warning (_("can't find symbol '%s' in minsymtab"), name); |