Anonymous

Results comments of Anonymous

Thanks. In the stable version of clang/lldb, the behavior is different. Thus, I was wondering this might be a potential bug. As you said, debug info doesn't have the location...

Following the dwarfdump for the binary built with the stable version of clang. $ clang-6.0 -Ofast -g small.c; llvm-dwarfdump a.out ``` a.out: file format elf64-x86-64 .debug_info contents: 0x00000000: Compile Unit:...

$ clang-6.0 -Ofast -g small.c; lldb-6.0 a.out ``` (lldb) target create "a.out" Current executable set to 'a.out' (x86_64). (lldb) b 10 Breakpoint 1: where = a.out`main + 43 at small.c:10,...

@jmorse I am sorry. I post the wrong code. The reported problem only occurs when it comes to `return res;`. When the code changed to `return 0;`, lldb behaves corretly.

@dwblaikie I really apologize to let you know that I used the wrong code to post those dwarfdump info and the assembly code in above posts. Have update those information...

@dwblaikie After reading @jmorse 's detail explanation. I agree that thest two bbehavior are equivalent and the latest one would be more precise.

`$ clang --version` ```console Ubuntu clang version 17.0.0 (++20230412091519+75ef84bf5260-1~exp1~20230412091628.1170) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin ``` `$ lldb --version` ```console lldb version 17.0.0 ```

> That's expected. We have a [section on the website](https://lldb.llvm.org/use/python-reference.html#embedded-python-interpreter) that explains why: > > > While extremely convenient, these variables have a couple caveats that you should be aware...

> https://godbolt.org/z/x41Yj51a6 see if this what you're trying to do. Yeah, I encountered a crash during the compilation process with the LLVM version I tried (19.0.0git). Additionally, I noticed that...

Thank you for your responses. I will consider the UB filtering issue in the upcoming testing process.