Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: cbexaminr on October 15, 2010, 02:08:59 am

Title: autoswitch (regression) testing ?
Post by: cbexaminr on October 15, 2010, 02:08:59 am
What does autoswitch functionality do?

What tests should be done to verify that it is working or not (for the gdb implementation, if that matters)?

(One change I'd like to make to improve disassembly is intrusive to the processing of output from the frame command invoked by (some of?) the autoswitch implementation.  That processing is actually for handling output from breakpoints, but is being triggered by output from the frame change, and I don't know if that's intentional or not.)
Title: Re: autoswitch (regression) testing ?
Post by: oBFusCATed on October 15, 2010, 12:51:16 pm
Autoswitch is useful when the debugger stops on a frame that doesn't have source/line info.
The C::B automatically switches to the first frame with valid source/line info.

Code
int main()
{
    while(1)
        sleep(10);
    return 0;
}
Run this code with the debugger and hit the pause button.