Author Topic: autoswitch (regression) testing ?  (Read 4390 times)

Offline cbexaminr

  • Multiple posting newcomer
  • *
  • Posts: 104
autoswitch (regression) testing ?
« 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.)
« Last Edit: October 15, 2010, 11:10:57 am by cbexaminr »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: autoswitch (regression) testing ?
« Reply #1 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]