From: Nicholas Nethercote Date: Wed, 1 May 2002 08:25:03 +0000 (+0000) Subject: Added N_GSYM case to stabs handler. X-Git-Tag: svn/VALGRIND_1_0_3~266 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35bee55d01c6815f54611097c5b3470619121c62;p=thirdparty%2Fvalgrind.git Added N_GSYM case to stabs handler. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@186 --- diff --git a/coregrind/vg_symtab2.c b/coregrind/vg_symtab2.c index 0136ba3bf7..35bd47e67b 100644 --- a/coregrind/vg_symtab2.c +++ b/coregrind/vg_symtab2.c @@ -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; diff --git a/vg_symtab2.c b/vg_symtab2.c index 0136ba3bf7..35bd47e67b 100644 --- a/vg_symtab2.c +++ b/vg_symtab2.c @@ -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;