Re: [DynInst_API:] Is DynInst_API the right tool for a simple binary rewriting task? If not, what is?


Date: Wed, 8 Jan 2014 07:31:53 -0500
From: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Subject: Re: [DynInst_API:] Is DynInst_API the right tool for a simple binary rewriting task? If not, what is?
Hi -

On Tue, Jan 07, 2014 at 07:02:38PM -0600, Chad Renton wrote:
> [...]
> Well, I suppose I should take a step back.  I really wish to call a
> script at that point in the binary, and am thinking the best way to do
> this is to insert arbitrary code.  I'd like it if the script could
> take the arguments to the function call, but it's not completely
> necessary.

This is wel within dyninst's capabilities, because systemtap's
--runtime=dyninst mode demonstrates just this sort of scripting:
intercepting functions or statements within functions, doing some
work with their local variables, then returning control.

- FChE
[← Prev in Thread] Current Thread [Next in Thread→]