diff options
author | Dave Lee <davelee.com@gmail.com> | 2023-05-11 10:04:55 -0700 |
---|---|---|
committer | Dave Lee <davelee.com@gmail.com> | 2023-05-11 13:24:32 -0700 |
commit | efbd5870402b53dc8aeee2d087db3109d198e3dc (patch) | |
tree | de274bb6508b32609c827a63fd9521e64dd3ac21 /lldb/source | |
parent | 1b11034c672fc90d35b4bc0e93f3507657b14094 (diff) | |
download | llvm-efbd5870402b53dc8aeee2d087db3109d198e3dc.tar.gz |
[lldb] Correct elision of line zero in mixed disassembly
When `disassemble --mixed` is run, do not show source for line zero, as intended.
Differential Revision: https://reviews.llvm.org/D150383
Diffstat (limited to 'lldb/source')
-rw-r--r-- | lldb/source/Core/Disassembler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/Disassembler.cpp b/lldb/source/Core/Disassembler.cpp index 797d30a520f3..db91dc59ddfa 100644 --- a/lldb/source/Core/Disassembler.cpp +++ b/lldb/source/Core/Disassembler.cpp @@ -243,7 +243,7 @@ bool Disassembler::ElideMixedSourceAndDisassemblyLine( // Skip any line #0 entries - they are implementation details if (line.line == 0) - return false; + return true; ThreadSP thread_sp = exe_ctx.GetThreadSP(); if (thread_sp) { |