Issue |
136089
|
Summary |
[LLDB] An inconsistency between step-by-step debugging and breakpoint debugging
|
Labels |
lldb
|
Assignees |
|
Reporter |
Apochens
|
Clang version:
```
Ubuntu clang version 21.0.0 (++20250415033808+d0e4af8a88dc-1~exp1~20250415153924.2354)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-21/bin
```
LLDB version: `lldb version 21.0.0`
Inconsistency-triggering program `test.c`:
```c
1 int printf(const char *, ...);
2 char a;
3 int b = 0, c = 0;
4 int main() {
5 if (c)
6 b = 1;
7 if (b)
8 printf(&a);
9 }
```
Compilation command: `clang -g -O2 test.c -o test`
**Inconsistent behavior:** When debugging the program test step-by-step (i.e., `b main` and `s`, `s`, ...), LLDB can stop at line 7. However, if we `b 7` and `run`, the program immediately exits.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs