coregrind/linux/core_os.c | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) diff -puN coregrind/linux/core_os.c~fix-tracking coregrind/linux/core_os.c --- valgrind/coregrind/linux/core_os.c~fix-tracking 2005-01-12 18:56:33.000000000 -0800 +++ valgrind-jeremy/coregrind/linux/core_os.c 2005-01-12 19:00:16.000000000 -0800 @@ -30,14 +30,16 @@ void VGA_(thread_wrapper)(ThreadId tid) tid, &tid); if (tid == 1) { - /* Thread 1 has its stack on the main process stack, and so - is expandable. Do this so that backtraces are printed - properly. - XXX Perhaps it should have a private stack too? - */ - tst->os_state.stack = (UInt *)VG_(valgrind_last) - VG_STACK_SIZE_W; - tst->os_state.stacksize = VG_STACK_SIZE_W; + /* Thread 1 has its stack on the main process stack, and so + is expandable. Do this so that backtraces are printed + properly. + XXX Perhaps it should have a private stack too? + */ + tst->os_state.stack = (UInt *)VG_(valgrind_last) - VG_STACK_SIZE_W; + tst->os_state.stacksize = VG_STACK_SIZE_W; } + + VG_TRACK ( post_thread_create, tst->os_state.parent, tid ); tst->os_state.lwpid = VG_(gettid)(); tst->os_state.threadgroup = VG_(getpid)(); _