Fix -data-list-register-names/-data-disassemble, minor fix in -data-list-register...
authorIlia K <ki.stfu@gmail.com>
Fri, 6 Feb 2015 12:43:05 +0000 (12:43 +0000)
committerIlia K <ki.stfu@gmail.com>
Fri, 6 Feb 2015 12:43:05 +0000 (12:43 +0000)
commitb792be8e79b1a050e9877aad7780c0abb5562a34
treeb2d9ce8ac6806056c9813bd01ad6f207f3682167
parentbb3967151653f3497b0260e7970207aaa0483a78
Fix -data-list-register-names/-data-disassemble, minor fix in -data-list-register-values (MI)

Summary:
* Fix -data-list-register-names command: previously it ignored regno arguments and always showed all registers
* Add 'size' field to -data-disassemble command: now we are able to get an instruction's size
* Minor fix in -data-list-register-value: fix comments/code style
* Enable all tests in MiDataTestCase
* Fix the GetRegister function that gets an register by its index

These changes were tested on OS X; all MiDataTestCase tests were passed.

Reviewers: clayborg, abidh

Reviewed By: clayborg, abidh

Subscribers: clayborg, abidh, lldb-commits

Differential Revision: http://reviews.llvm.org/D7442

llvm-svn: 228393
lldb/test/tools/lldb-mi/TestMiData.py
lldb/tools/lldb-mi/MICmdCmdData.cpp
lldb/tools/lldb-mi/MICmdCmdData.h