Re: [RFA-new version][gdbserver] x86 agent expression bytecode compiler (speed up conditional tracepoints)

Doug Evans
2010-06-20T15:30:51Z

On Sun, Jun 20, 2010 at 2:29 AM, Pierre Muller
<pierre.muller@ics-cnrs.unistra.fr> wrote:
>  As I said in a previous email, Ian's patch didn't work for me.
> http://sourceware.org/ml/gdb-patches/2010-06/msg00424.html

That's weird.
Ian's approach involves removing the "if-always-true" test completely
leaving just an asm.
Can you send me the patch of Ian's that you tried?

>  I propose here another small patch that fixes the linking failure.
> Using a volatile variable, it explicitly forbids the compiler
> to optimize out code by forbidding the assumption that this value will
> never change.
>
>  This works on gcc16, an the approach seems reasonable.

That's my patch. :-)