From 03b40f6f55bed82bd16b2a1fd94fb8c8dbf797bf Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 16 Jul 2024 23:51:59 -0400 Subject: 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 Approved-By: Andrew Burgess --- gdb/obsd-tdep.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gdb/obsd-tdep.c') diff --git a/gdb/obsd-tdep.c b/gdb/obsd-tdep.c index 5142984..fab05b7 100644 --- a/gdb/obsd-tdep.c +++ b/gdb/obsd-tdep.c @@ -27,9 +27,7 @@ CORE_ADDR obsd_skip_solib_resolver (struct gdbarch *gdbarch, CORE_ADDR pc) { - struct bound_minimal_symbol msym; - - msym = lookup_minimal_symbol("_dl_bind", NULL, NULL); + bound_minimal_symbol msym = lookup_minimal_symbol ("_dl_bind", NULL, NULL); if (msym.minsym && msym.value_address () == pc) return frame_unwind_caller_pc (get_current_frame ()); else -- cgit v1.1