Speed up objdump when displaying disassembly mixed with line number and source code...
[deliverable/binutils-gdb.git] / bfd / dwarf2.c
index b477d27cfd50f9597f49191ae4a9845df5d319f2..40edd91aefac62fed89c53ea2b52f709bb7298d0 100644 (file)
@@ -2336,9 +2336,15 @@ lookup_address_in_function_table (struct comp_unit *unit,
   bfd_size_type low, high, mid, first;
   struct arange *arange;
 
+  if (number_of_functions == 0)
+    return FALSE;
+
   if (!build_lookup_funcinfo_table (unit))
     return FALSE;
 
+  if (unit->lookup_funcinfo_table[number_of_functions - 1].high_addr < addr)
+    return FALSE;
+  
   /* Find the first function in the lookup table which may contain the
      specified address.  */
   low = 0;
This page took 0.026347 seconds and 4 git commands to generate.