| Issue |
184990
|
| Summary |
[lldb][windows] Use calls to `_RTC_UninitUse` for pretty-printing unitialized error messages.
|
| Labels |
lldb,
platform:windows
|
| Assignees |
charles-zablit
|
| Reporter |
charles-zablit
|
From @Nerixyz (see https://github.com/llvm/llvm-project/pull/184874#issue-4030347247):
MSVC inserts calls to `_RTC_UninitUse` which causes a pretty error message when debugging with VS:
> Exception has occurred: The variable 'read_result' is being used without being initialized.
> Run-Time Check Failure #3 - The variable 'read_result' is being used without being initialized.
With LLDB, you get
```
(lldb) r
Process 12344 stopped
* thread #9, stop reason = Exception 0x80000003 encountered at address 0x7ff96516c96a
frame #0: 0x00007ff96516c96b liblldb.dll`failwithmessage(retaddr=0x00007ff95742cb02, crttype=1, errnum=3, msg="The variable 'read_result' is being used without being initialized.") at error.cpp:210
```
We could improve on the stop reason that's displayed.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs