Re: [DynInst_API:] oneTimeCode() and exit callbacks


Date: Mon, 25 Feb 2013 16:43:49 -0600
From: David Smith <dsmith@xxxxxxxxxx>
Subject: Re: [DynInst_API:] oneTimeCode() and exit callbacks
On 02/25/2013 03:39 PM, Andrew Bernat wrote:
> On Feb 25, 2013, at 3:34 PM, David Smith <dsmith@xxxxxxxxxx
> <mailto:dsmith@xxxxxxxxxx>> wrote:
> 
>> I'd like to call oneTimeCode() from the callback. However, oneTimeCode()
>> refuses to run if (!proc->isStopped()). As I mentioned earlier, if I
>> call stopExecution(), then the process exits. When stopExecution
>> returns, proc->isTerminated() is true (when I'm in the exit callback).
>>
>> If I've misunderstood your answer, please let me know.
> 
> Sure, but when we're delivering the callback the process really should
> be stopped. Is proc->isStopped() returning false? 

Ah, that question makes more sense. Yes, in the exit callback
proc->isStopped() returns false.

-- 
David Smith
dsmith@xxxxxxxxxx
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)
[← Prev in Thread] Current Thread [Next in Thread→]