[Lldb-commits] [lldb] [lldb-dap] Implement value locations for function pointers (PR #104589)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 18 10:40:24 PDT 2024


================
@@ -0,0 +1,11 @@
+#include <cstdio>
+
+void greet() { printf("Hello"); }
+
+int main(void) {
+  int var1 = 1;
+  void (*func_ptr)() = &greet;
+  void (&func_ref)() = greet;
+  __builtin_printf("break here");
----------------
clayborg wrote:

We don't need the printf here right? Just put a comment on the line below:
```
  return 0; // break here
```

https://github.com/llvm/llvm-project/pull/104589


More information about the lldb-commits mailing list