]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
DARWIN sync: stabs wibble.
authorNicholas Nethercote <njn@valgrind.org>
Wed, 20 May 2009 02:07:56 +0000 (02:07 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Wed, 20 May 2009 02:07:56 +0000 (02:07 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9997

coregrind/m_debuginfo/readstabs.c

index 8a3c6e195ad9c135de93a96cd0ba3bb7edb94573..5bb9ac2d248446cedef4960b4cae8976b60aa89f 100644 (file)
@@ -129,11 +129,12 @@ void ML_(read_debuginfo_stabs) ( DebugInfo* di,
       const struct nlist *st = &stab[i];
       Char *string;
 
-      if (debug && 1) {
-         VG_(printf) ( "%2d  type=%d   othr=%d   desc=%d   value=0x%x   strx=%d  %s\n", i,
+      if (di->trace_symtab) {
+         VG_(printf) ( "%2d  type=%d   othr=%d   desc=%d   "
+                       "value=0x%x   strx=%d  %s\n", i,
                        st->n_type, st->n_other, st->n_desc, 
-                       (int)st->n_value,
-                       (int)st->n_un.n_strx, 
+                       (Int)st->n_value,
+                       (Int)st->n_un.n_strx, 
                        stabstr + st->n_un.n_strx );
       }