diff options
| author | Björn Pettersson <bjorn.a.pettersson@ericsson.com> | 2023-11-08 11:30:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-08 11:30:03 +0100 |
| commit | 2626916c45f428226052f5e431e510743aba9e75 (patch) | |
| tree | a60438ec158434da427d3cb6765b05460c41a913 /lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py | |
| parent | 8fc0aca5d1c12482d72fc412cea975de330a78b4 (diff) | |
[clangd] Allow hover over 128-bit variable without crashing (#71415)
When hovering over variables larger than 64 bits, with more than 64
active bits, there were assertion failures since Hover is trying to
print the value as a 64-bit hex value.
There is already protection avoiding to call printHex if there is more
than 64 significant bits. And we already truncate and print negative
values using only 32 bits, when possible. So we can simply truncate
values with more than 64 bits to avoid the assert when using
getZExtValue. The result will be that for example a negative 128 bit
variable is printed using 64 bits, when possible.
There is still no support for printing more than 64 bits. That would
involve more changes since for example llvm::FormatterNumber is limited
to 64 bits.
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py')
0 files changed, 0 insertions, 0 deletions
