Yesterday I learnt...

Posted on Wed 17 August 2005 by alex in general

..or thought I learnt that gdb can corrupt your stack if you plant a conditional breakpoint. Queue much wailing and gnashing of teeth after wasted a half a day trying to track down another bug using this feature. Of course I'd made a rather simple schoolboy error which a C compiler would of waved a red flag over. Can you spot whats wrong with this gdb command?: b SomeCode.cc:70 if state.subjectAddress = 0x70003a18

The re-learnt lesson is "usually computers do exactly what you ask them to do"