diff options
author | Jason Molenda <jmolenda@apple.com> | 2014-12-02 00:26:21 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2014-12-02 00:26:21 +0000 |
commit | 98b3fde8ac7c9bcc6840e4898394767f4463e0fd (patch) | |
tree | fa3e6551d01bbae84e540ebd7b9a3052c135b7ce /lldb/source/Core/Debugger.cpp | |
parent | 3c1a41ad9969ae4e3353f5984d66af85ce56cf9a (diff) | |
download | bcm5719-llvm-98b3fde8ac7c9bcc6840e4898394767f4463e0fd.tar.gz bcm5719-llvm-98b3fde8ac7c9bcc6840e4898394767f4463e0fd.zip |
Fix the behavior of ${current-pc-arrow} in the default disassembly
format for the not-current-stack-frame. This was causing
test/functionalities/inferior-assert to fail.
Also document the new additions to the format specifications used
in the disassembly-format changes to formats.html.
<rdar://problem/19102757>
llvm-svn: 223096
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r-- | lldb/source/Core/Debugger.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 6cb844f2928..3462fcdaf26 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -125,7 +125,7 @@ g_language_enumerators[] = FILE_AND_LINE\ "\\n" -#define DEFAULT_DISASSEMBLY_FORMAT "${current-pc-arrow} ${addr-file-or-load}{ <${function.name-without-args}${function.concrete-only-addr-offset-no-padding}>}: " +#define DEFAULT_DISASSEMBLY_FORMAT "${current-pc-arrow}${addr-file-or-load}{ <${function.name-without-args}${function.concrete-only-addr-offset-no-padding}>}: " static PropertyDefinition g_properties[] = @@ -2626,17 +2626,18 @@ FormatPromptRecurse pc.SetLoadAddress (pc_loadaddr, exe_ctx->GetTargetPtr()); if (pc == *addr) { - s.Printf ("->"); - var_success = true; - } - else - { - s.Printf(" "); + s.Printf ("-> "); var_success = true; } } } + if (var_success == false) + { + s.Printf(" "); + var_success = true; + } } + var_success = true; } break; } |