* inftarg.c (child_thread_alive): New function to see if a
[deliverable/binutils-gdb.git] / gdb / mdebugread.c
index f2e00457ab984cc7c4f926a1f039d1d03f4feac7..c4f18890072e559a9b8cb876a1d34361b4c69c1c 100644 (file)
@@ -687,9 +687,12 @@ parse_symbol (sh, ax, ext_sh, bigend, section_offsets)
   switch (sh->sc)
     {
     case scText:
-      /* The value of a stEnd symbol is the displacement from the
-        corresponding start symbol value, do not relocate it.  */
-      if (sh->st != stEnd)
+      /* Do not relocate relative values.
+        The value of a stEnd symbol is the displacement from the
+        corresponding start symbol value.
+        The value of a stBlock symbol is the displacement from the
+        procedure address.  */
+      if (sh->st != stEnd && sh->st != stBlock)
        sh->value += ANOFFSET (section_offsets, SECT_OFF_TEXT);
       break;
     case scData:
@@ -3217,8 +3220,6 @@ psymtab_to_symtab_1 (pst, filename)
     {
       /* This symbol table contains ordinary ecoff entries.  */
 
-      /* FIXME:  doesn't use pst->section_offsets.  */
-
       int f_max;
       int maxlines;
       EXTR *ext_ptr;
This page took 0.024243 seconds and 4 git commands to generate.