diff options
author | Pavel Labath <pavel@labath.sk> | 2019-09-04 13:26:41 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-09-04 13:26:41 +0000 |
commit | 052297524624db02eff91252c582037dc99c0528 (patch) | |
tree | 6647d80f2765ef0ccb9803237488d5f0fb088769 /lldb/source/Commands/CommandObjectDisassemble.cpp | |
parent | f1b3cd6c908780d662e47ac2434b3c51299f6955 (diff) | |
download | bcm5719-llvm-052297524624db02eff91252c582037dc99c0528.tar.gz bcm5719-llvm-052297524624db02eff91252c582037dc99c0528.zip |
disassemble command: fix error message when disassembly fails
We were printing the start_addr field, which is not correct, as in this
branch we are processing the memory described by cur_range. Print that
instead.
Ideally, in particular this case, the error message would also say
something about not being able to disassemble due to not having found
the module from the core file, but that is not easy to do right now, so
I'm leaving that for another time.
llvm-svn: 370898
Diffstat (limited to 'lldb/source/Commands/CommandObjectDisassemble.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectDisassemble.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectDisassemble.cpp b/lldb/source/Commands/CommandObjectDisassemble.cpp index 7c5859126bf..69e2d757b5f 100644 --- a/lldb/source/Commands/CommandObjectDisassemble.cpp +++ b/lldb/source/Commands/CommandObjectDisassemble.cpp @@ -510,7 +510,7 @@ bool CommandObjectDisassemble::DoExecute(Args &command, } else { result.AppendErrorWithFormat( "Failed to disassemble memory at 0x%8.8" PRIx64 ".\n", - m_options.start_addr); + cur_range.GetBaseAddress().GetLoadAddress(target)); result.SetStatus(eReturnStatusFailed); } if (print_sc_header) |