* dwarf2read.c (read_func_scope): Do not complain for
authorPierre Muller <muller@sourceware.org>
Tue, 1 Jun 2010 21:34:15 +0000 (21:34 +0000)
committerPierre Muller <muller@sourceware.org>
Tue, 1 Jun 2010 21:34:15 +0000 (21:34 +0000)
external function if bounds are not found.

gdb/ChangeLog
gdb/dwarf2read.c

index 87facb9ea2f8310a97c773a3123763042ad3835e..176a6ecdb80a0220b088df0bcbb74735061cc890 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-01  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * dwarf2read.c (read_func_scope): Do not complain for
+       external function if bounds are not found.
+
 2010-06-01  Pedro Alves  <pedro@codesourcery.com>
 
        * NEWS: Mention gdbserver fast tracepoints support.
index 129d6c1d78926b4a9b2255671f207d31c78fe47f..254d8999b7ba43fa23d85844fa9f6fb784389b71 100644 (file)
@@ -3904,9 +3904,11 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu)
   /* Ignore functions with missing or invalid low and high pc attributes.  */
   if (!dwarf2_get_pc_bounds (die, &lowpc, &highpc, cu, NULL))
     {
-      complaint (&symfile_complaints,
-                 _("cannot get low and high bounds for subprogram DIE at %d"),
-                 die->offset);
+      attr = dwarf2_attr (die, DW_AT_external, cu);
+      if (!attr || !DW_UNSND (attr))
+       complaint (&symfile_complaints,
+                  _("cannot get low and high bounds for subprogram DIE at %d"),
+                  die->offset);
       return;
     }
 
This page took 0.039492 seconds and 4 git commands to generate.