[Lldb-commits] [PATCH] D149111: [lldb] Add support for specifying language when setting watchpoint by expression

Alex Langford via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 24 17:02:42 PDT 2023


bulbazord created this revision.
bulbazord added reviewers: JDevlieghere, mib, jingham, jasonmolenda, kastiglione, Michael137.
Herald added a project: All.
bulbazord requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

This is useful in contexts where you have multiple languages in play:
You may be stopped in a frame for language A, but want to set a breakpoint
with an expression using language B. The current way to do this is to
use the setting `target.language` while setting the watchpoint and
unset it after the watchpoint is set, but that's kind of clunky and
somewhat error-prone. This should add a better way to do this.

rdar://108202559


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149111

Files:
  lldb/include/lldb/Interpreter/OptionGroupWatchpoint.h
  lldb/source/Commands/CommandObjectWatchpoint.cpp
  lldb/source/Interpreter/OptionGroupWatchpoint.cpp
  lldb/test/Shell/Watchpoint/ExpressionLanguage.test
  lldb/test/Shell/Watchpoint/Inputs/languages.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149111.516585.patch
Type: text/x-patch
Size: 5154 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230425/1dd629ac/attachment-0001.bin>


More information about the lldb-commits mailing list