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/frv-tdep.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/frv-tdep.c')
-rw-r--r-- | gdb/frv-tdep.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/frv-tdep.c b/gdb/frv-tdep.c index 1b5e15f..b1f79f3 100644 --- a/gdb/frv-tdep.c +++ b/gdb/frv-tdep.c @@ -1062,14 +1062,13 @@ frv_skip_main_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) { LONGEST displ; CORE_ADDR call_dest; - struct bound_minimal_symbol s; displ = ((op & 0xfe000000) >> 7) | (op & 0x0003ffff); if ((displ & 0x00800000) != 0) displ |= ~((LONGEST) 0x00ffffff); call_dest = pc + 4 * displ; - s = lookup_minimal_symbol_by_pc (call_dest); + bound_minimal_symbol s = lookup_minimal_symbol_by_pc (call_dest); if (s.minsym != NULL && s.minsym->linkage_name () != NULL @@ -1374,14 +1373,14 @@ frv_frame_this_id (const frame_info_ptr &this_frame, = frv_frame_unwind_cache (this_frame, this_prologue_cache); CORE_ADDR base; CORE_ADDR func; - struct bound_minimal_symbol msym_stack; struct frame_id id; /* The FUNC is easy. */ func = get_frame_func (this_frame); /* Check if the stack is empty. */ - msym_stack = lookup_minimal_symbol ("_stack", NULL, NULL); + bound_minimal_symbol msym_stack + = lookup_minimal_symbol ("_stack", NULL, NULL); if (msym_stack.minsym && info->base == msym_stack.value_address ()) return; |