summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2021-05-25 13:27:38 +0200
committerRaphael Isemann <teemperor@gmail.com>2021-05-25 13:33:28 +0200
commitae58cf5f45a9c159afbf86e93c0c257a22c4ee02 (patch)
treed9cb56b7720d7f1598123dc9f964153537d23ca4 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parentf1c5f78d3813584f7796f8b84b92fa0725964c17 (diff)
[lldb] Fix that LLDB doesn't print NaN's sign on Darwin
It seems std::ostringstream ignores NaN signs on Darwin while it prints them on Linux. This causes that LLDB behaves differently on those platforms which is both confusing for users and it also means we have to deal with that in our tests. This patch manually implements the NaN/Inf printing (which are apparently implementation defined) to make LLDB print the same thing on all platforms. The only output difference in practice seems to be that we now print negative NaNs as `-nan`, but this potentially also changes the output on other systems I haven't tested this on. Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D102845
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions