Re: truss

From: Anton Yuzhaninov <citrin_at_citrin.ru>
Date: Wed, 21 Sep 2011 07:43:44 +0000 (UTC)
On Tue, 20 Sep 2011 00:27:22 +0300, Kostik Belousov wrote:
KB> Could you, please, test the change below ? For me, I still can truss(1)
KB> or debug with gdb after the change applied. Does truss work for you
KB> with only this change, without resetting SIGTRAP handler in truss process ?
KB> 
KB> commit 2ae586c039a55399edc3b34cd40410e0d690a16c
KB> Author: Konstantin Belousov <kostik_at_pooma.home>
KB> Date:   Tue Sep 20 00:25:07 2011 +0300
KB> 
KB>     Do not deliver SIGTRAP on exec as the normal signal, use ptracestop()
KB>     on syscall exit path. Otherwise, if SIGTRAP is ignored, that tdsendsignal()
KB>     do not want to deliver, and debugger never get a notification of exec.

I can confirm - with this patch unmodified truss works when SIGTRAP is ignored.

-- 
 Anton Yuzhaninov
Received on Wed Sep 21 2011 - 05:44:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:18 UTC