> Thinking about the 'skipping an instruction' thing. I imagine you have to > or you would never be able to continue from any note that was triggered due > to an instruction in the program. At least not without some logic in the > note system to check what triggered it, where and ignore it if needed.
certainly if you have an illegal instruction you may need to look at notejmp (see setjmp(2)). but more practically... you can catch notes triggered by syscalls, and of course, the ancient bourne shell trick of using a page fault note (er, well really signal, since the bourne shell is a unix program) to ask for more memory will allow for the restarting of the faulting instruction. and it better not be skipped! - erik