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>
This commit is contained in:
Simon Marchi
2024-07-16 23:51:59 -04:00
committed by Simon Marchi
parent 10ac7e80c0
commit 03b40f6f55
95 changed files with 300 additions and 401 deletions

View File

@@ -145,7 +145,7 @@ parser_state::push_symbol (const char *name, block_symbol sym)
}
else
{
struct bound_minimal_symbol msymbol = lookup_bound_minimal_symbol (name);
bound_minimal_symbol msymbol = lookup_bound_minimal_symbol (name);
if (msymbol.minsym != NULL)
push_new<expr::var_msym_value_operation> (msymbol);
else if (!have_full_symbols (current_program_space)
@@ -162,7 +162,6 @@ void
parser_state::push_dollar (struct stoken str)
{
struct block_symbol sym;
struct bound_minimal_symbol msym;
struct internalvar *isym = NULL;
std::string copy;
@@ -232,7 +231,7 @@ parser_state::push_dollar (struct stoken str)
push_new<expr::var_value_operation> (sym);
return;
}
msym = lookup_bound_minimal_symbol (copy.c_str ());
bound_minimal_symbol msym = lookup_bound_minimal_symbol (copy.c_str ());
if (msym.minsym)
{
push_new<expr::var_msym_value_operation> (msym);