]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Added N_GSYM case to stabs handler.
authorNicholas Nethercote <njn@valgrind.org>
Wed, 1 May 2002 08:25:03 +0000 (08:25 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Wed, 1 May 2002 08:25:03 +0000 (08:25 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@186

coregrind/vg_symtab2.c
vg_symtab2.c

index 0136ba3bf771bde0dac6eaf21bba1a38f6ddb8d3..35bd47e67b2d1ed4190a387d3d7001a8421b79d9 100644 (file)
@@ -55,7 +55,8 @@
  *   Menapace, Kingdon and MacKenzie
  *   Cygnus Support
  */
-typedef enum { N_FUN   = 36,    /* Function start or end            */
+typedef enum { N_GSYM  = 32,    /* Global symbol                    */
+               N_FUN   = 36,    /* Function start or end            */
                N_STSYM = 38,    /* Data segment file-scope variable */
                N_LCSYM = 40,    /* BSS segment file-scope variable  */
                N_RSYM  = 64,    /* Register variable                */
@@ -943,7 +944,7 @@ void vg_read_lib_symbols ( SegInfo* si )
 
                   /* Boring one: skip, look for something more useful. */
                   case N_RSYM: case N_LSYM: case N_LBRAC: case N_RBRAC: 
-                  case N_STSYM: case N_LCSYM:
+                  case N_STSYM: case N_LCSYM: case N_GSYM:
                      i++;
                      goto LOOP;
                      
index 0136ba3bf771bde0dac6eaf21bba1a38f6ddb8d3..35bd47e67b2d1ed4190a387d3d7001a8421b79d9 100644 (file)
@@ -55,7 +55,8 @@
  *   Menapace, Kingdon and MacKenzie
  *   Cygnus Support
  */
-typedef enum { N_FUN   = 36,    /* Function start or end            */
+typedef enum { N_GSYM  = 32,    /* Global symbol                    */
+               N_FUN   = 36,    /* Function start or end            */
                N_STSYM = 38,    /* Data segment file-scope variable */
                N_LCSYM = 40,    /* BSS segment file-scope variable  */
                N_RSYM  = 64,    /* Register variable                */
@@ -943,7 +944,7 @@ void vg_read_lib_symbols ( SegInfo* si )
 
                   /* Boring one: skip, look for something more useful. */
                   case N_RSYM: case N_LSYM: case N_LBRAC: case N_RBRAC: 
-                  case N_STSYM: case N_LCSYM:
+                  case N_STSYM: case N_LCSYM: case N_GSYM:
                      i++;
                      goto LOOP;