]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make --dump-error= work properly.
authorJulian Seward <jseward@acm.org>
Fri, 31 Dec 2004 01:14:04 +0000 (01:14 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 31 Dec 2004 01:14:04 +0000 (01:14 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3211

coregrind/vg_translate.c

index 69a52a5b85c6ae37b0330a77592389955ade781b..5b44ea00e3e085c1685c32f0afd323e8ef7edf31 100644 (file)
@@ -414,7 +414,7 @@ Bool VG_(translate) ( ThreadId tid, Addr orig_addr,
       seg->flags |= SF_CODE;        /* contains cached code */
 
    /* If doing any code printing, print a basic block start marker */
-   if (VG_(clo_trace_codegen)) {
+   if (VG_(clo_trace_codegen) || debugging_translation) {
       Char fnname[64] = "";
       VG_(get_fnname_w_offset)(orig_addr, fnname, 64);
       VG_(printf)(
@@ -425,10 +425,14 @@ Bool VG_(translate) ( ThreadId tid, Addr orig_addr,
 
    /* True if a debug trans., or if bit N set in VG_(clo_trace_codegen). */
    verbosity = 0;
-   if ( debugging_translation
-        || (VG_(clo_trace_codegen) > 0
-            && VG_(get_bbs_translated)() >= VG_(clo_trace_notbelow) ))
+   if (debugging_translation) {
+      verbosity = 0xFE;
+   }
+   else
+   if ( (VG_(clo_trace_codegen) > 0
+        && VG_(get_bbs_translated)() >= VG_(clo_trace_notbelow) )) {
       verbosity = VG_(clo_trace_codegen);
+   }
 
    /* Actually do the translation. */
    tres = LibVEX_Translate (