<div dir="ltr"><div>I think it could depend on various things such as the CPU and the debugger.</div><div><br></div><div>In 30+ years I have never used them.</div><div><br></div><div>You can achieve something similar with gdb macros. Something along the lines of:</div><div><br></div><div>while 1</div><div> watch banana.peel</div><div> if banana.peel == 0 then break</div><div> continue</div><div>end while</div><div><br></div><div><br></div><div>but of course written in the write syntax :-).</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 18, 2018 at 3:13 PM Robin Gilks <<a href="mailto:robin@gilks.org">robin@gilks.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Knowing that several members of the group have experience of ARM<br>
processors, I thought I'd pose this question.<br>
<br>
I'm trying to use a conditional watchpoint - Eclipse syntax is not<br>
transparent so I'm going directly from the GDB console (arm-none-eabi-gdb<br>
version 7.10.1.20160923) with the following command line<br>
<br>
watch banana.peel if banana.peel != 0<br>
<br>
but the condition gets ignored (i.e. breaks on all values written to<br>
banana.peel).<br>
<br>
Are conditions actually supported on arm gdb?<br>
<br>
<br>
<br>
-- <br>
Robin Gilks<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Chchrobotics mailing list <a href="mailto:Chchrobotics@lists.ourshack.com" target="_blank">Chchrobotics@lists.ourshack.com</a><br>
<a href="https://lists.ourshack.com/mailman/listinfo/chchrobotics" rel="noreferrer" target="_blank">https://lists.ourshack.com/mailman/listinfo/chchrobotics</a><br>
Mail Archives: <a href="http://lists.ourshack.com/pipermail/chchrobotics/" rel="noreferrer" target="_blank">http://lists.ourshack.com/pipermail/chchrobotics/</a><br>
Meetings usually 3rd Monday each month. See <a href="http://kiwibots.org" rel="noreferrer" target="_blank">http://kiwibots.org</a> for venue, directions and dates.<br>
When replying, please edit your Subject line to reflect new subjects.</blockquote></div>