From: Pedro Alves Date: Sat, 26 Mar 2016 00:06:19 +0000 (+0000) Subject: lookup_minimal_symbol_text X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fusers%2Fpalves%2Fjit-speedup;p=thirdparty%2Fbinutils-gdb.git lookup_minimal_symbol_text Noticed that create_exception_master_breakpoint could be using the cheaper lookup_minimal_symbol_text instead of lookup_minimal_symbol. --- diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 8faea5813c3..cfda918183d 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -3727,7 +3727,7 @@ create_exception_master_breakpoint (struct sym_search_scope *search_scope) { struct bound_minimal_symbol debug_hook; - debug_hook = lookup_minimal_symbol (func_name, NULL, objfile); + debug_hook = lookup_minimal_symbol_text (func_name, objfile); if (debug_hook.minsym == NULL) { bp_objfile_data->exception_msym.minsym = &msym_not_found;