diff options
| author | Ashok Thirumurthi <ashok.thirumurthi@intel.com> | 2013-05-13 21:45:50 +0000 |
|---|---|---|
| committer | Ashok Thirumurthi <ashok.thirumurthi@intel.com> | 2013-05-13 21:45:50 +0000 |
| commit | cdb5b61a2dfe54145b3ef69fe4e79f84e6286d7e (patch) | |
| tree | 4e5cbb44819cf1c3f1090209f40034ed3476fabb /lldb/source/Plugins/Process/POSIX | |
| parent | b218b7f22a4cea7d65318268a7b150ed80986417 (diff) | |
| download | bcm5719-llvm-cdb5b61a2dfe54145b3ef69fe4e79f84e6286d7e.tar.gz bcm5719-llvm-cdb5b61a2dfe54145b3ef69fe4e79f84e6286d7e.zip | |
Prevent convenience registers from being included in "read register" as they are derived registers.
- Also refactors TestRegisters.py because test_convenience_registers_with_process_attach now fails with an assert.
TODO: Cross-reference the skipOnLinux decorator with a bugzilla report after root-causing this issue.
llvm-svn: 181737
Diffstat (limited to 'lldb/source/Plugins/Process/POSIX')
| -rw-r--r-- | lldb/source/Plugins/Process/POSIX/RegisterContext_x86_64.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/POSIX/RegisterContext_x86_64.cpp b/lldb/source/Plugins/Process/POSIX/RegisterContext_x86_64.cpp index 62598cbb9f4..ec7c41f0d7a 100644 --- a/lldb/source/Plugins/Process/POSIX/RegisterContext_x86_64.cpp +++ b/lldb/source/Plugins/Process/POSIX/RegisterContext_x86_64.cpp @@ -314,9 +314,12 @@ g_reg_sets[k_num_register_sets] = { #reg, alt, 0, 0, eEncodingUint, \ eFormatHex, { kind1, kind2, kind3, kind4, gpr_##reg }, NULL, NULL } +// Dummy data for RegisterInfo::value_regs as expected by DumpRegisterSet. +static uint32_t value_regs = LLDB_INVALID_REGNUM; + #define DEFINE_GPR_i386(reg_i386, reg_x86_64, alt, kind1, kind2, kind3, kind4) \ { #reg_i386, alt, GPR_i386_SIZE(reg_i386), 0, eEncodingUint, \ - eFormatHex, { kind1, kind2, kind3, kind4, gpr_##reg_i386 }, NULL, NULL } + eFormatHex, { kind1, kind2, kind3, kind4, gpr_##reg_i386 }, &value_regs, NULL } #define DEFINE_FPR(reg, kind1, kind2, kind3, kind4) \ { #reg, NULL, FPR_SIZE(reg), FPR_OFFSET(reg), eEncodingUint, \ |

