diff options
author | Johnny Chen <johnny.chen@apple.com> | 2012-06-05 23:25:10 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2012-06-05 23:25:10 +0000 |
commit | c4392d2ad0f1deaff90fe2035e55611d3e373568 (patch) | |
tree | affb87672738ad11c7830a8216cd86e786325f01 /lldb/source/Commands/CommandObjectRegister.cpp | |
parent | 46d229c5735a9b2fa5ddc2189e9d88e511d69665 (diff) | |
download | bcm5719-llvm-c4392d2ad0f1deaff90fe2035e55611d3e373568.tar.gz bcm5719-llvm-c4392d2ad0f1deaff90fe2035e55611d3e373568.zip |
rdar://problem/11598332
The output of 'register read' should be prettier.
Modify RegisterValue::Dump() to take an additional parameter:
uint32_t reg_name_right_align_at
which defaults to 0 (i.e., no alignment at all). Update the 'register read' command impl to pass 8
as the alignment to RegisterValue::Dump() method. If more sophisticated scheme is desired, we will
need to introduce an additional command option to 'register read' later on.
llvm-svn: 158039
Diffstat (limited to 'lldb/source/Commands/CommandObjectRegister.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectRegister.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectRegister.cpp b/lldb/source/Commands/CommandObjectRegister.cpp index 711fd995278..1dc56918198 100644 --- a/lldb/source/Commands/CommandObjectRegister.cpp +++ b/lldb/source/Commands/CommandObjectRegister.cpp @@ -95,7 +95,7 @@ public: bool prefix_with_altname = m_command_options.alternate_name; bool prefix_with_name = !prefix_with_altname; - reg_value.Dump(&strm, reg_info, prefix_with_name, prefix_with_altname, m_format_options.GetFormat()); + reg_value.Dump(&strm, reg_info, prefix_with_name, prefix_with_altname, m_format_options.GetFormat(), 8); if ((reg_info->encoding == eEncodingUint) || (reg_info->encoding == eEncodingSint)) { Process *process = exe_ctx.GetProcessPtr(); |