mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-29 10:02:14 +00:00
Support evaluating expression in the debugger.
Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
parent
5a284d486b
commit
d2cc5fec47
7 changed files with 268 additions and 34 deletions
|
|
@ -1324,7 +1324,7 @@ Value ByteCodeInterpreter::interpret(ExecutionState* state, ByteCodeBlock* byteC
|
|||
#ifdef ESCARGOT_DEBUGGER
|
||||
Debugger* debugger = state->context()->debugger();
|
||||
if (debugger && debugger->enabled()) {
|
||||
debugger->processDisabledBreakpoint(codeBuffer, (uint32_t)(programCounter - (size_t)codeBuffer), state);
|
||||
debugger->processDisabledBreakpoint(byteCodeBlock, (uint32_t)(programCounter - (size_t)codeBuffer), state);
|
||||
}
|
||||
#endif /* ESCARGOT_DEBUGGER */
|
||||
|
||||
|
|
@ -1338,7 +1338,7 @@ Value ByteCodeInterpreter::interpret(ExecutionState* state, ByteCodeBlock* byteC
|
|||
#ifdef ESCARGOT_DEBUGGER
|
||||
Debugger* debugger = state->context()->debugger();
|
||||
if (debugger && debugger->enabled()) {
|
||||
debugger->stopAtBreakpoint(codeBuffer, (uint32_t)(programCounter - (size_t)codeBuffer), state);
|
||||
debugger->stopAtBreakpoint(byteCodeBlock, (uint32_t)(programCounter - (size_t)codeBuffer), state);
|
||||
}
|
||||
#endif /* ESCARGOT_DEBUGGER */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue