From 35bee55d01c6815f54611097c5b3470619121c62 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 1 May 2002 08:25:03 +0000 Subject: [PATCH] Added N_GSYM case to stabs handler. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@186 --- coregrind/vg_symtab2.c | 5 +++-- vg_symtab2.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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; -- 2.47.2