|
Am Mittwoch, 23. Februar 2005 16:52 schrieb Steve Holle: > Gestern 16:52:53 > This problem is most troubling in switch/case statements where, it seems, I > can hardly find a line that allows a valid set point. I agree. Especially, if you use optimization (as I often have to), it's difficult. What about this approach: #ifdef DEBUG # define BREAKPOINT_ITEM(mark) asm("nop; /*" mark "*/") #else # define BREAKPOINT_ITEM #endif at the position where you want to insert a breakpoint, you can now use this statement like this: BREAKPOINT_ITEM("breakpoint location") which will result in a line which you should be able to find in the disassembly window: nop; /* breakpoint location */ I didn't test the code, thus it might be buggy. However, I'm sure you got the idea behind... I successfully used such constructs, and found, that even the optimizer leaves these inserted nop's intact. Bernhard |
Online · Live + on demand
February 9-11, 2027
Price goes up Jan 1: register now to lock in today's rate
Register Now →
VDSP++ V3.5
Started by ●February 22, 2005
Reply by ●February 24, 20052005-02-24







