]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
If Vex calls the failure-exit function, bomb out in such a way as
authorJulian Seward <jseward@acm.org>
Wed, 20 Oct 2004 09:36:13 +0000 (09:36 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 20 Oct 2004 09:36:13 +0000 (09:36 +0000)
to show stack traces of all current threads.

git-svn-id: svn://svn.valgrind.org/vex/trunk@381

VEX/head20041019/coregrind/vg_translate.c

index b39bc62eee1d2c885e3d61ee43e259bfe802c56f..2dba4123cdcc49b4c6ab7d958f156611faf26544 100644 (file)
@@ -1397,7 +1397,7 @@ void failure_exit ( void )
 {
    LibVEX_ClearTemporary(True);
    VG_(printf)("VEX did failure_exit.  Bye.\n");
-   VG_(exit)(1);
+   vg_assert(0); //VG_(exit)(1);
 }
 
 static
@@ -1516,7 +1516,7 @@ Bool VG_(translate) ( ThreadId tid, Addr orig_addr,
              (Char*)orig_addr, (Addr64)orig_addr, &orig_size,
              tmpbuf, N_TMPBUF, &tmpbuf_used,
              NULL, NULL,
-             DECIDE_IF_PRINTING_CODEGEN ? 2 : 0
+             0+ DECIDE_IF_PRINTING_CODEGEN ? 2 : 0
           );
 
    vg_assert(tres == TransOK);