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/ada-lang.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/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 1cf6ff5..e0f895c 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -798,7 +798,6 @@ ada_get_decoded_type (struct type *type) const char * ada_main_name () { - struct bound_minimal_symbol msym; static gdb::unique_xmalloc_ptr<char> main_program_name; /* For Ada, the name of the main procedure is stored in a specific @@ -806,7 +805,8 @@ ada_main_name () extract its address, and then read that string. If we didn't find that string, then most probably the main procedure is not written in Ada. */ - msym = lookup_minimal_symbol (ADA_MAIN_PROGRAM_SYMBOL_NAME, NULL, NULL); + bound_minimal_symbol msym + = lookup_minimal_symbol (ADA_MAIN_PROGRAM_SYMBOL_NAME, NULL, NULL); if (msym.minsym != NULL) { @@ -4921,10 +4921,10 @@ add_defn_to_vec (std::vector<struct block_symbol> &result, specially: "standard__" is first stripped off, and only static and global symbols are searched. */ -struct bound_minimal_symbol +bound_minimal_symbol ada_lookup_simple_minsym (const char *name, struct objfile *objfile) { - struct bound_minimal_symbol result; + bound_minimal_symbol result; symbol_name_match_type match_type = name_match_type_from_name (name); lookup_name_info lookup_name (name, match_type); @@ -11695,7 +11695,7 @@ ada_has_this_exception_support (const struct exception_support_info *einfo) the name of the exception being raised (this name is printed in the catchpoint message, and is also used when trying to catch a specific exception). We do not handle this case for now. */ - struct bound_minimal_symbol msym + bound_minimal_symbol msym = lookup_minimal_symbol (einfo->catch_exception_sym, NULL, NULL); if (msym.minsym && msym.minsym->type () != mst_solib_trampoline) @@ -11715,7 +11715,7 @@ ada_has_this_exception_support (const struct exception_support_info *einfo) sym = standard_lookup (einfo->catch_handlers_sym, NULL, SEARCH_VFT); if (sym == NULL) { - struct bound_minimal_symbol msym + bound_minimal_symbol msym = lookup_minimal_symbol (einfo->catch_handlers_sym, NULL, NULL); if (msym.minsym && msym.minsym->type () != mst_solib_trampoline) |