Statetrace: Make sure the current state is loaded to print the initial stack frame.
The early call to child->step() was removed earlier because it confused the new differences-only protocol ARM sendState() was using. It's necessary that that gets called at least once before attempting to print the initial stack frame, though, because otherwise statetrace doesn't know what the stack pointer is. By putting the first call to child->step() in a common spot, both needs are met.
This commit is contained in:
parent
b066e717f4
commit
e09ae149af
1 changed files with 1 additions and 1 deletions
|
@ -123,6 +123,7 @@ int main(int argc, char * argv[], char * envp[])
|
|||
cerr << "Couldn't start target program" << endl;
|
||||
return 1;
|
||||
}
|
||||
child->step();
|
||||
if(printInitial)
|
||||
{
|
||||
child->outputStartState(cout);
|
||||
|
@ -157,7 +158,6 @@ int main(int argc, char * argv[], char * envp[])
|
|||
cerr << "Couldn't connect to server! " << strerror(errno) << endl;
|
||||
return 1;
|
||||
}
|
||||
child->step();
|
||||
while(child->isTracing())
|
||||
{
|
||||
if(!child->sendState(sock))
|
||||
|
|
Loading…
Reference in a new issue