diff options
| author | Laxman Sole <lsole@nvidia.com> | 2025-11-03 13:34:44 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-03 13:34:44 -0800 |
| commit | 6fe3eccdf44fc8adb46e78e65edadd57926d2fb6 (patch) | |
| tree | ce2f3dbd1ebe0a5c2451aa1a54a8335cdddd9e5f /lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.h | |
| parent | 25da15f9b1f910cb5d350381c1c8a287cbe4cf0f (diff) | |
| download | llvm-6fe3eccdf44fc8adb46e78e65edadd57926d2fb6.zip llvm-6fe3eccdf44fc8adb46e78e65edadd57926d2fb6.tar.gz llvm-6fe3eccdf44fc8adb46e78e65edadd57926d2fb6.tar.bz2 | |
[llvm][DebugInfo] Emit 0/1 for constant boolean values (#151225)
Previously, sign-extending a 1-bit boolean operand in `#DBG_VALUE` would
convert `true` to -1 (i.e., 0xffffffffffffffff). However, DWARF treats
booleans as unsigned values, so this resulted in the attribute
`DW_AT_const_value(0xffffffffffffffff)` being emitted. As a result, the
debugger would display the value as `255` instead of `true`.
This change modifies the behavior to use zero-extension for 1-bit values
instead, ensuring that `true` is represented as 1. Consequently, the
DWARF attribute emitted is now `DW_AT_const_value(1)`, which allows the
debugger to correctly display the boolean as `true`.
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.h')
0 files changed, 0 insertions, 0 deletions
