]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Commented-out get_current_tid() hack.
authorJulian Seward <jseward@acm.org>
Tue, 14 Dec 2004 09:19:29 +0000 (09:19 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 14 Dec 2004 09:19:29 +0000 (09:19 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3200

coregrind/vg_signals.c

index 97281db84d2a16e180cabaf2a3d5a100c93e1f52..2909f3065beea542fb5311eb26a4637a8c66b398 100644 (file)
@@ -1753,7 +1753,11 @@ void vg_sync_signalhandler ( Int sigNo, vki_siginfo_t *info, struct vki_ucontext
       act upon and immediately restart the faulting instruction.
     */
    if (info->si_signo == VKI_SIGSEGV) {
+      /* HACK */
+      //ThreadId tid = VG_(running_a_thread)() ? VG_(get_current_tid)() : 1;
       ThreadId tid = VG_(get_current_tid)();
+      /* end HACK */
+
       Addr fault = (Addr)info->_sifields._sigfault._addr;
       Addr esp   =  STACK_PTR(VG_(threads)[tid].arch);
       Segment *seg;