Files
clang-p2996/lldb/test/Shell/Watchpoint/Inputs/languages.cpp
Alex Langford c997acb97a [lldb] Add support for specifying language when setting watchpoint by expression
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 watchpoint
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

Differential Revision: https://reviews.llvm.org/D149111
2023-04-26 10:24:28 -07:00

13 lines
179 B
C++

#include <cstdint>
#include <iostream>
uint64_t g_foo = 5;
uint64_t g_bar = 6;
uint64_t g_baz = 7;
int main() {
int val = 8;
printf("Hello world! %d\n", val);
return 0;
}