b88c5a8d4f
This changes the way how we are handling instrumentation breakpoints. Motivation: with instrumentation breakpoints, we need a way to break on (conditional) breakpoints that were just set by the client on the instrumentation pause. How: We want to first find out if we have an instrumentation break, and trigger a pause. For this to work, we need to distinguish between regular and instrumentation breakpoints in the debugger back-end. On resume, we want to check if we have hit any breakpoints (may now contain new breakpoints due to the client setting new breakpoints at the previous instrumentation pause) and trigger a separate pause for them. Fixed: chromium:1292930 Change-Id: Idaadd276c44c693f856c4b08c7a72ea67271f420 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3442676 Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Reviewed-by: Jaroslav Sevcik <jarin@chromium.org> Reviewed-by: Andreas Haas <ahaas@chromium.org> Commit-Queue: Kim-Anh Tran <kimanh@chromium.org> Cr-Commit-Position: refs/heads/main@{#79053}
50 lines
1.9 KiB
Plaintext
50 lines
1.9 KiB
Plaintext
Test if breakpoints are hit that are set on instrumentation pause in wasm.
|
|
|
|
Running test: testSetBreakpointOnInstrumentationPause
|
|
Setting instrumentation breakpoint
|
|
Compiling wasm module.
|
|
Paused at v8://test/compile_module with reason "instrumentation".
|
|
Hit breakpoints: []
|
|
Instantiating module.
|
|
Paused at v8://test/instantiate with reason "instrumentation".
|
|
Hit breakpoints: []
|
|
Setting breakpoint at instrumentation break location
|
|
Paused at wasm://wasm/20da547a with reason "instrumentation".
|
|
Script wasm://wasm/20da547a byte offset 26: Wasm opcode 0x01 (kExprNop)
|
|
Hit breakpoints: []
|
|
Paused at wasm://wasm/20da547a with reason "other".
|
|
Script wasm://wasm/20da547a byte offset 26: Wasm opcode 0x01 (kExprNop)
|
|
Hit breakpoints: ["4:0:26:4"]
|
|
Done.
|
|
|
|
Running test: testSetConditionalBreakpointTrueConditionOnInstrumentationPause
|
|
Setting instrumentation breakpoint
|
|
Compiling wasm module.
|
|
Paused at v8://test/compile_module with reason "instrumentation".
|
|
Hit breakpoints: []
|
|
Instantiating module.
|
|
Paused at v8://test/instantiate with reason "instrumentation".
|
|
Hit breakpoints: []
|
|
Setting breakpoint at instrumentation break location
|
|
Paused at wasm://wasm/20da547a with reason "instrumentation".
|
|
Script wasm://wasm/20da547a byte offset 26: Wasm opcode 0x01 (kExprNop)
|
|
Hit breakpoints: []
|
|
Paused at wasm://wasm/20da547a with reason "other".
|
|
Script wasm://wasm/20da547a byte offset 26: Wasm opcode 0x01 (kExprNop)
|
|
Hit breakpoints: ["4:0:26:4"]
|
|
Done.
|
|
|
|
Running test: testSetConditionalBreakpointFalseConditionOnInstrumentationPause
|
|
Setting instrumentation breakpoint
|
|
Compiling wasm module.
|
|
Paused at v8://test/compile_module with reason "instrumentation".
|
|
Hit breakpoints: []
|
|
Instantiating module.
|
|
Paused at v8://test/instantiate with reason "instrumentation".
|
|
Hit breakpoints: []
|
|
Setting breakpoint at instrumentation break location
|
|
Paused at wasm://wasm/20da547a with reason "instrumentation".
|
|
Script wasm://wasm/20da547a byte offset 26: Wasm opcode 0x01 (kExprNop)
|
|
Hit breakpoints: []
|
|
Done.
|