* partial-stab.h (N_SO): Add the text offset to valu before, not after,
authorJim Kingdon <jkingdon@engr.sgi.com>
Sun, 18 Jul 1993 22:50:30 +0000 (22:50 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Sun, 18 Jul 1993 22:50:30 +0000 (22:50 +0000)
passing it to END_PSYMTAB.

gdb/ChangeLog
gdb/partial-stab.h

index eb7dc327984e9af1a7a08ba83a6598f007c78df3..51faafb1a33a394116e907f103dee97ae9f155e6 100644 (file)
@@ -1,3 +1,8 @@
+Sun Jul 18 15:22:45 1993  Jim Kingdon  (kingdon@rtl.cygnus.com)
+
+       * partial-stab.h (N_SO): Add the text offset to valu before, not after,
+       passing it to END_PSYMTAB.
+
 Fri Jul 16 18:48:52 1993  Jim Kingdon  (kingdon@rtl.cygnus.com)
 
        * symtab.c (find_pc_symtab): Call warning, not printf directly.
index e76c8d86dd287a01d3b6ddd26530e55528d74e83..1eea3ccee8c2b5c83f85440fe5e4af327aee9360 100644 (file)
@@ -203,11 +203,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
           */
 
        case N_SO: {
-         unsigned long valu = CUR_SYMBOL_VALUE;
+         unsigned long valu;
          static int prev_so_symnum = -10;
          static int first_so_symnum;
          char *p;
-         
+
+         valu = CUR_SYMBOL_VALUE + ANOFFSET (section_offsets, SECT_OFF_TEXT);
+
          past_first_source_file = 1;
 
          if (prev_so_symnum != symnum - 1)
@@ -231,8 +233,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
          SET_NAMESTRING();
 
-         valu += ANOFFSET (section_offsets, SECT_OFF_TEXT);
-
          /* Some compilers (including gcc) emit a pair of initial N_SOs.
             The first one is a directory name; the second the file name.
             If pst exists, is empty, and has a filename ending in '/',
This page took 0.031181 seconds and 4 git commands to generate.