[Lldb-commits] [lldb] [LLDB] Add unary plus and minus to DIL (PR #155617)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 16 08:53:03 PDT 2025
================
@@ -0,0 +1,8 @@
+int main(int argc, char **argv) {
+ int array[10];
+ array[0] = 0;
+ int (&array_ref)[10] = array;
+ int *p_int0 = &array[0];
+
+ return 0; // Set a breakpoint here
----------------
adrian-prantl wrote:
Generally, it is more reliable to set a breakpoint on a function call, since the return statement itself doesn't always produce an instruction with a line table entry that is outside the epilogue. So it's better to either write something like
```
void stop() {}
...
stop(); // break here
return 0;
```
https://github.com/llvm/llvm-project/pull/155617
More information about the lldb-commits
mailing list