forked from Imagelibrary/binutils-gdb
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>
This commit is contained in:
committed by
Simon Marchi
parent
10ac7e80c0
commit
03b40f6f55
@@ -547,7 +547,6 @@ ftrace_new_gap (struct btrace_thread_info *btinfo, int errcode,
|
||||
static struct btrace_function *
|
||||
ftrace_update_function (struct btrace_thread_info *btinfo, CORE_ADDR pc)
|
||||
{
|
||||
struct bound_minimal_symbol bmfun;
|
||||
struct minimal_symbol *mfun;
|
||||
struct symbol *fun;
|
||||
struct btrace_function *bfun;
|
||||
@@ -556,7 +555,7 @@ ftrace_update_function (struct btrace_thread_info *btinfo, CORE_ADDR pc)
|
||||
to avoid surprises when we sometimes get a full symbol and sometimes
|
||||
only a minimal symbol. */
|
||||
fun = find_pc_function (pc);
|
||||
bmfun = lookup_minimal_symbol_by_pc (pc);
|
||||
bound_minimal_symbol bmfun = lookup_minimal_symbol_by_pc (pc);
|
||||
mfun = bmfun.minsym;
|
||||
|
||||
if (fun == NULL && mfun == NULL)
|
||||
|
||||
Reference in New Issue
Block a user