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/breakpoint.c | |
parent | 10ac7e80c01125d1b2754763066dae35b13e6cb0 (diff) | |
download | binutils-03b40f6f55bed82bd16b2a1fd94fb8c8dbf797bf.zip binutils-03b40f6f55bed82bd16b2a1fd94fb8c8dbf797bf.tar.gz binutils-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/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 670a3f7..a8f67e7 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -3466,7 +3466,7 @@ create_internal_breakpoint (struct gdbarch *gdbarch, static struct breakpoint * create_internal_breakpoint (struct gdbarch *gdbarch, - struct bound_minimal_symbol &msym, enum bptype type) + bound_minimal_symbol &msym, enum bptype type) { CORE_ADDR address; @@ -3498,10 +3498,10 @@ static const char *const longjmp_names[] = struct breakpoint_objfile_data { /* Minimal symbol for "_ovly_debug_event" (if any). */ - struct bound_minimal_symbol overlay_msym; + bound_minimal_symbol overlay_msym; /* Minimal symbol(s) for "longjmp", "siglongjmp", etc. (if any). */ - struct bound_minimal_symbol longjmp_msym[NUM_LONGJMP_NAMES]; + bound_minimal_symbol longjmp_msym[NUM_LONGJMP_NAMES]; /* True if we have looked for longjmp probes. */ int longjmp_searched = 0; @@ -3511,10 +3511,10 @@ struct breakpoint_objfile_data std::vector<probe *> longjmp_probes; /* Minimal symbol for "std::terminate()" (if any). */ - struct bound_minimal_symbol terminate_msym; + bound_minimal_symbol terminate_msym; /* Minimal symbol for "_Unwind_DebugHook" (if any). */ - struct bound_minimal_symbol exception_msym; + bound_minimal_symbol exception_msym; /* True if we have looked for exception probes. */ int exception_searched = 0; @@ -3570,9 +3570,8 @@ create_overlay_event_breakpoint (void) if (bp_objfile_data->overlay_msym.minsym == NULL) { - struct bound_minimal_symbol m; - - m = lookup_minimal_symbol_text (func_name, objfile); + bound_minimal_symbol m + = lookup_minimal_symbol_text (func_name, objfile); if (m.minsym == NULL) { /* Avoid future lookups in this objfile. */ @@ -3675,9 +3674,8 @@ create_longjmp_master_breakpoint_names (objfile *objfile) func_name = longjmp_names[i]; if (bp_objfile_data->longjmp_msym[i].minsym == NULL) { - struct bound_minimal_symbol m; - - m = lookup_minimal_symbol_text (func_name, objfile); + bound_minimal_symbol m + = lookup_minimal_symbol_text (func_name, objfile); if (m.minsym == NULL) { /* Prevent future lookups in this objfile. */ @@ -3753,9 +3751,8 @@ create_std_terminate_master_breakpoint (void) if (bp_objfile_data->terminate_msym.minsym == NULL) { - struct bound_minimal_symbol m; - - m = lookup_minimal_symbol (func_name, NULL, objfile); + bound_minimal_symbol m + = lookup_minimal_symbol (func_name, NULL, objfile); if (m.minsym == NULL || (m.minsym->type () != mst_text && m.minsym->type () != mst_file_text)) { @@ -3846,9 +3843,8 @@ create_exception_master_breakpoint_hook (objfile *objfile) if (bp_objfile_data->exception_msym.minsym == NULL) { - struct bound_minimal_symbol debug_hook; - - debug_hook = lookup_minimal_symbol_text (func_name, objfile); + bound_minimal_symbol debug_hook + = lookup_minimal_symbol_text (func_name, objfile); if (debug_hook.minsym == NULL) { bp_objfile_data->exception_msym.minsym = &msym_not_found; |