]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
lookup_minimal_symbol_text users/palves/jit-speedup
authorPedro Alves <palves@redhat.com>
Sat, 26 Mar 2016 00:06:19 +0000 (00:06 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 19 Sep 2016 14:44:43 +0000 (15:44 +0100)
Noticed that create_exception_master_breakpoint could be using the
cheaper lookup_minimal_symbol_text instead of lookup_minimal_symbol.

gdb/breakpoint.c

index 8faea5813c31af0094d656fd8b3c73d4b54698b3..cfda918183d1cc6f38dabc046e6a651945baad47 100644 (file)
@@ -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;