* mdebugread.c (psymtab_to_symtab_1): Relocate encoded stab
authorStan Shebs <shebs@codesourcery.com>
Tue, 25 Jul 1995 20:16:48 +0000 (20:16 +0000)
committerStan Shebs <shebs@codesourcery.com>
Tue, 25 Jul 1995 20:16:48 +0000 (20:16 +0000)
line numbers using the psymtab's section offsets.
PR 7514

gdb/ChangeLog
gdb/mdebugread.c

index 9e5baa730075bbcb4584470a15600d6b66ca2d79..592986ea376f3fc45dc3d9132d9bb7e67ad41ee4 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jul 25 11:43:44 1995  Stan Shebs  <shebs@andros.cygnus.com>
+
+       * mdebugread.c (psymtab_to_symtab_1): Relocate encoded stab
+       line numbers using the psymtab's section offsets.
+
 Tue Jul 25 10:43:27 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
 
        * config/rs6000/tm-rs6000.h (rs6000_framedata): Rename from
index 4676ba481b8e6adc61f75ff9a1bcb25e9dfb9cf4..e5b3df0fbd3c94d512a0b9fab16c053f69d87420 100644 (file)
@@ -3191,6 +3191,7 @@ psymtab_to_symtab_1 (pst, filename)
                }
              else
                /* Handle encoded stab line number. */
+               valu += ANOFFSET (pst->section_offsets, SECT_OFF_TEXT);
                record_line (current_subfile, sh.index, valu);
            }
          else if (sh.st == stProc || sh.st == stStaticProc