summaryrefslogtreecommitdiff
path: root/lldb/test/Shell/ScriptInterpreter/Lua/watchpoint_callback.test
AgeCommit message (Collapse)Author
2023-06-07[lldb] Disable variable watchpoints when going out of scopeMed Ismail Bennani
If we use a variable watchpoint with a condition using a scope variable, if we go out-of-scope, the watpoint remains active which can the expression evaluator to fail to parse the watchpoint condition (because of the missing varible bindings). This was discovered after `watchpoint_callback.test` started failing on the green dragon bot. This patch should address that issue by setting an internal breakpoint on the return addresss of the current frame when creating a variable watchpoint. The breakpoint has a callback that will disable the watchpoint if the the breakpoint execution context matches the watchpoint execution context. This is only enabled for local variables. This patch also re-enables the failing test following e1086384e584. rdar://109574319 Differential Revision: https://reviews.llvm.org/D151366 Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
2023-05-26Revert "[lldb] Disable variable watchpoints when going out of scope"Jason Molenda
Reverting https://reviews.llvm.org/D151366 until Ismail has a chance to look at the ubuntu CI test failures and can reland. This reverts commit 7c847ac4bd1bd8a89c7fbb4581328fa8cb0498f1.
2023-05-25[lldb] Disable variable watchpoints when going out of scopeMed Ismail Bennani
If we use a variable watchpoint with a condition using a scope variable, if we go out-of-scope, the watpoint remains active which can the expression evaluator to fail to parse the watchpoint condition (because of the missing varible bindings). This was discovered after `watchpoint_callback.test` started failing on the green dragon bot. This patch should address that issue by setting an internal breakpoint on the return addresss of the current frame when creating a variable watchpoint. The breakpoint has a callback that will disable the watchpoint if the the breakpoint execution context matches the watchpoint execution context. This is only enabled for local variables. This patch also re-enables the failing test following e1086384e584. rdar://109574319 Differential Revision: https://reviews.llvm.org/D151366 Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
2023-05-24[lldb] Disable `watchpoint_callback.test` temporarily on darwinMed Ismail Bennani
This test started failing on the green-dragon bot, but after some investigation, it doesn't have anything to do with Lua. If we use a variable watchpoint with a condition using a scope variable, if we go out-of-scope, the watpoint remains active which can the expression evaluator to fail to parse the watchpoint condition (because of the missing varible bindings). For now, we should disable this test until we come up with a fix for it. rdar://109574319 Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
2022-02-07[lldb] Fix Lua/watchpoint_callback.test on Apple SiliconJonas Devlieghere
As Pavel pointed out, on Apple Silicon "b main" stops at a point after the variable has already been initialized. This patch updates the test case to avoids that. I've also split the test into separate files so its easier to reproduce the individual scenarios without having to build any shared state.
2021-07-09[lldb] Drop REQUIRES where redundant because of lit.local.cfgJonas Devlieghere
2021-07-07[lldb/lua] Add scripted watchpoints for LuaSiger Yang
Add support for Lua scripted watchpoints, with basic tests. Differential Revision: https://reviews.llvm.org/D105034
2020-12-20[lldb] [test] Update test status for NetBSDMichał Górny
2019-12-21[lldb/ScriptInterpreter] Fix stale/bogus error messagesJonas Devlieghere
Fix the nonsensical error messages for when breakpoint and watchpoint callbacks are not supported.