aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2024-07-16 23:51:59 -0400
committerSimon Marchi <simon.marchi@efficios.com>2024-08-12 10:31:09 -0400
commit03b40f6f55bed82bd16b2a1fd94fb8c8dbf797bf (patch)
tree6cbaaed5ce62e15621e3c7f21f872459f9be0223 /gdb/value.c
parent10ac7e80c01125d1b2754763066dae35b13e6cb0 (diff)
downloadgdb-03b40f6f55bed82bd16b2a1fd94fb8c8dbf797bf.zip
gdb-03b40f6f55bed82bd16b2a1fd94fb8c8dbf797bf.tar.gz
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/value.c')
-rw-r--r--gdb/value.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/value.c b/gdb/value.c
index aaa9ed2..b83e550 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -2988,7 +2988,7 @@ value_static_field (struct type *type, int fieldno)
{
/* With some compilers, e.g. HP aCC, static data members are
reported as non-debuggable symbols. */
- struct bound_minimal_symbol msym
+ bound_minimal_symbol msym
= lookup_minimal_symbol (phys_name, NULL, NULL);
struct type *field_type = type->field (fieldno).type ();
@@ -3171,7 +3171,7 @@ value_fn_field (struct value **arg1p, struct fn_field *f,
struct type *ftype = TYPE_FN_FIELD_TYPE (f, j);
const char *physname = TYPE_FN_FIELD_PHYSNAME (f, j);
struct symbol *sym;
- struct bound_minimal_symbol msym;
+ bound_minimal_symbol msym;
sym = lookup_symbol (physname, nullptr, SEARCH_FUNCTION_DOMAIN,
nullptr).symbol;