<p></p>
<p>For example, currently, invoking strace like this:</p>
<pre><code>strace -einject=chdir:retval=1000:when=1 \
       -einject=chdir:retval=2000:when=2
</code></pre>
<p>injects 2000 at the second occurence of <code>chdir</code>, but ignores the first inject expression.</p>
<p>Considering overlapping expressions, when invoked for example like this:</p>
<pre><code>strace -einject=<...>:<...>:when=first+step1 \
       -einject=<...>:<...>:when=first+step2
</code></pre>
<p>strace should perform both injections on steps <code>first+step1*step2</code>, in the order from first specified to last specified.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/strace/strace/issues/173">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AOVBTR3YOJXK34EU25IZ5ALS52H7ZANCNFSM4XHOKZVQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AOVBTR5ZPAZXRTYXSGESD2LS52H7ZA5CNFSM4XHOKZV2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4L64CKBQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/strace/strace/issues/173",
"url": "https://github.com/strace/strace/issues/173",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>