Re: [DynInst_API:] How to use DyninstAPI to get thread/process call stack in case of a signal delivery


Date: Wed, 16 Apr 2014 11:43:53 -0400
From: Ray Chen <rchen@xxxxxxxxxx>
Subject: Re: [DynInst_API:] How to use DyninstAPI to get thread/process call stack in case of a signal delivery
On Wed, Apr 16, 2014 at 9:30 AM, JiangJie <yangtzj@xxxxxxxxxxx> wrote:
>
> So my question is, how to collect the target process's call stack in case of
> a signal delivery by using DynisntAPI?
> A solution comes to me is to register a signal handler callback by invoking
> registerSignalHandlerCallback.
> Is this a correct solution? Or is there any other better solution in
> DyninstAPI?
>
Hello Jie,

Yes, installing a callback via registerSignalHandlerCallback() is the
correct solution.

Let us know how it works out!
- Ray
[← Prev in Thread] Current Thread [Next in Thread→]