diff options
| author | Jim Ingham <jingham@apple.com> | 2017-08-24 18:01:50 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2017-08-24 18:01:50 +0000 |
| commit | 44ea3195968e552a2b4cb1020f6933271e7a4a36 (patch) | |
| tree | f440ad50421fb6a49215996e5ba58fad1dc41185 /lldb/scripts | |
| parent | 6aedf785c5c34fc4e89544d78cf649df3c2c8716 (diff) | |
| download | bcm5719-llvm-44ea3195968e552a2b4cb1020f6933271e7a4a36.tar.gz bcm5719-llvm-44ea3195968e552a2b4cb1020f6933271e7a4a36.zip | |
Fixed a typo in the example (getName -> GetName)
but while I was at it I converted the example to use
properties, since that's much nicer looking.
llvm-svn: 311679
Diffstat (limited to 'lldb/scripts')
| -rw-r--r-- | lldb/scripts/interface/SBValue.i | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/scripts/interface/SBValue.i b/lldb/scripts/interface/SBValue.i index ef9fe3c7485..2063626fc24 100644 --- a/lldb/scripts/interface/SBValue.i +++ b/lldb/scripts/interface/SBValue.i @@ -16,15 +16,15 @@ SBValue supports iteration through its child, which in turn is represented as an SBValue. For example, we can get the general purpose registers of a frame as an SBValue, and iterate through all the registers, - registerSet = frame.GetRegisters() # Returns an SBValueList. + registerSet = frame.registers # Returns an SBValueList. for regs in registerSet: - if 'general purpose registers' in regs.getName().lower(): + if 'general purpose registers' in regs.name.lower(): GPRs = regs break - print('%s (number of children = %d):' % (GPRs.GetName(), GPRs.GetNumChildren())) + print('%s (number of children = %d):' % (GPRs.name, GPRs.num_children)) for reg in GPRs: - print('Name: ', reg.GetName(), ' Value: ', reg.GetValue()) + print('Name: ', reg.name, ' Value: ', reg.value) produces the output: |

