diff options
author | Greg Clayton <gclayton@apple.com> | 2011-06-28 19:01:40 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-06-28 19:01:40 +0000 |
commit | b10d72f019736a9944c851f11f8995485c5ccc86 (patch) | |
tree | fd9bf2934da279caa015c494a06d33d4545c2d2a /lldb/source/Commands/CommandObjectDisassemble.cpp | |
parent | 7297e7e223b931e351d6f4e551504f94ff141102 (diff) | |
download | llvm-b10d72f019736a9944c851f11f8995485c5ccc86.zip llvm-b10d72f019736a9944c851f11f8995485c5ccc86.tar.gz llvm-b10d72f019736a9944c851f11f8995485c5ccc86.tar.bz2 |
Remove the disassembly option: "eOptionShowCurrentLine" and replaced it with
two:
eOptionMarkPCSourceLine = (1u << 2), // Mark the source line that contains the current PC (mixed mode only)
eOptionMarkPCAddress = (1u << 3) // Mark the disassembly line the contains the PC
This allows mixed mode to show the line that contains the current PC, and it
allows us to mark the PC address in the disassembly if desired. Having these
be separate gives more control on the disassembly output. SBFrame::Disassemble()
doesn't enable any of these options.
llvm-svn: 134019
Diffstat (limited to 'lldb/source/Commands/CommandObjectDisassemble.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectDisassemble.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectDisassemble.cpp b/lldb/source/Commands/CommandObjectDisassemble.cpp index 980c83c..90554ea 100644 --- a/lldb/source/Commands/CommandObjectDisassemble.cpp +++ b/lldb/source/Commands/CommandObjectDisassemble.cpp @@ -258,10 +258,12 @@ CommandObjectDisassemble::Execute m_options.num_lines_context = 1; ExecutionContext exe_ctx(m_interpreter.GetExecutionContext()); - uint32_t options = 0; + // Always show the PC in the disassembly + uint32_t options = Disassembler::eOptionMarkPCAddress; - if (!m_options.show_mixed) - options |= Disassembler::eOptionShowCurrentLine; + // Mark the source line for the current PC only if we are doing mixed source and assembly + if (m_options.show_mixed) + options |= Disassembler::eOptionMarkPCSourceLine; if (m_options.show_bytes) options |= Disassembler::eOptionShowBytes; |