mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 05:55:40 +00:00
Fix problem next'ing over an external method
llvm-svn: 1027
This commit is contained in:
parent
067667b61e
commit
3f9f8e34ca
@ -894,6 +894,7 @@ void Interpreter::nextInstruction() { // Do the 'next' command
|
||||
// If this is a call instruction, step over the call instruction...
|
||||
// TODO: ICALL, CALL WITH, ...
|
||||
if ((*ECStack.back().CurInst)->getOpcode() == Instruction::Call) {
|
||||
unsigned StackSize = ECStack.size();
|
||||
// Step into the function...
|
||||
if (executeInstruction()) {
|
||||
// Hit a breakpoint, print current instruction, then return to user...
|
||||
@ -902,8 +903,11 @@ void Interpreter::nextInstruction() { // Do the 'next' command
|
||||
return;
|
||||
}
|
||||
|
||||
// Finish executing the function...
|
||||
finish();
|
||||
// If we we able to step into the function, finish it now. We might not be
|
||||
// able the step into a function, if it's external for example.
|
||||
if (ECStack.size() != StackSize)
|
||||
finish(); // Finish executing the function...
|
||||
|
||||
} else {
|
||||
// Normal instruction, just step...
|
||||
stepInstruction();
|
||||
|
Loading…
Reference in New Issue
Block a user