2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
authorPierre Muller <muller@sourceware.org>
Tue, 16 Jul 2002 07:42:25 +0000 (07:42 +0000)
committerPierre Muller <muller@sourceware.org>
Tue, 16 Jul 2002 07:42:25 +0000 (07:42 +0000)
* blockframe.c (get_pc_function_start): return 0 if the minimal symbol
found is not inside a section.

gdb/ChangeLog
gdb/blockframe.c

index 13a7b2bce0af0710b0eea1ccd2dfb32640e27628..2fb74fefb622a3d1c759d867998e1f7889f0dd6c 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
+       found is not inside a section.
+
 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
 
        * aix-thread.c (ptrace_check): Use safe_strerror() instead of
index 8f95a891291f28f57dbb3e4028602571fca887aa..25bc000567351419731c0e955d5c373f60fc382b 100644 (file)
@@ -632,6 +632,8 @@ get_pc_function_start (CORE_ADDR pc)
   else if ((msymbol = lookup_minimal_symbol_by_pc (pc)) != NULL)
     {
       fstart = SYMBOL_VALUE_ADDRESS (msymbol);
+      if (!find_pc_section (fstart))
+       return 0;
     }
   else
     {