Message-ID: <348DBED5.7034D2FD@gmx.net> Date: Tue, 09 Dec 1997 22:57:41 +0100 From: Robert Hoehne MIME-Version: 1.0 To: Calvin French CC: DJGPP Mailing list Subject: Re: RHIDE Debugging Idea... References: <348d87d3 DOT 0 AT news DOT cadvision DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Calvin French schrieb: > [SNIP] > And that's all. Then what I do, is set a breakpoint on the line, int a = 0. > Then, I can run my program until a peculiar behavior occurs, at which point I > can just press space, and then debug effectively. Now, this approach works > fine, the only problem being that when I clear breakpoints I have to re-set > this one. It is just a bit inconvenient. So what I really want to know is if > there is an interrupt or something else I can pull to cause RHIDE to behave > as if it just hit a breakpoint. Then, I could do something like: > > #include "breaks.h" > > ... > > if( key[ KEY_SPACE ] ) breakpoint(); > All your ideas are not possible to realize (at least I see now way for it currently). The only thing I can imagine is the following: Add to your source a dummy function void breakpoint() { } and then set a breakpoint to this function (NOT using the Ctrl+F8 key but using the breakpoints dialog, where you can set a breakpoint to a function!!!). Then you can use the above code: if (key[KEY_SPACE]) breakpoint(); which will work also, when you have deleted/inserted some source lines, because the breakpoint is set to the function independet of its source line. (be not irritated when the breakpoint line for such a function-breakpoint is not at the correct line after some editing. It is corrected after each start of the debugger to the correct line). [SNIP] > somebody more knowledgable fill me in? If this could be accomplished, it > would then become relatively simple to take it one step further, and: Oh, it is very simple to write your wishes, but very hard to realize :-) BTW: I have also some other "simple tasks" which I would have in RHIDE, but ... > > #include "breaks.h" > > ... > > install_break_handler( KEY_BREAK ); > At least I see no way for doing this. But if someone else has an idea, I will try my best if it is an idea which can be implemented. Robert -- ****************************************************** * email: Robert Hoehne * * Post: Am Berg 3, D-09573 Dittmannsdorf, Germany * * WWW: http://www.tu-chemnitz.de/~sho/rho * ******************************************************