|
16 | 16 |
|
17 | 17 | namespace lldb {
|
18 | 18 |
|
19 |
| -#ifdef SWIG |
20 |
| -%feature("docstring", |
21 |
| -"Represents the value of a variable, a register, or an expression. |
22 |
| -
|
23 |
| -SBValue supports iteration through its child, which in turn is represented |
24 |
| -as an SBValue. For example, we can get the general purpose registers of a |
25 |
| -frame as an SBValue, and iterate through all the registers, |
26 |
| -
|
27 |
| - registerSet = frame.GetRegisters() # Returns an SBValueList. |
28 |
| - for regs in registerSet: |
29 |
| - if 'general purpose registers' in regs.getName().lower(): |
30 |
| - GPRs = regs |
31 |
| - break |
32 |
| -
|
33 |
| - print '%s (number of children = %d):' % (GPRs.GetName(), GPRs.GetNumChildren()) |
34 |
| - for reg in GPRs: |
35 |
| - print 'Name: ', reg.GetName(), ' Value: ', reg.GetValue() |
36 |
| -
|
37 |
| -produces the output: |
38 |
| -
|
39 |
| -General Purpose Registers (number of children = 21): |
40 |
| -Name: rax Value: 0x0000000100000c5c |
41 |
| -Name: rbx Value: 0x0000000000000000 |
42 |
| -Name: rcx Value: 0x00007fff5fbffec0 |
43 |
| -Name: rdx Value: 0x00007fff5fbffeb8 |
44 |
| -Name: rdi Value: 0x0000000000000001 |
45 |
| -Name: rsi Value: 0x00007fff5fbffea8 |
46 |
| -Name: rbp Value: 0x00007fff5fbffe80 |
47 |
| -Name: rsp Value: 0x00007fff5fbffe60 |
48 |
| -Name: r8 Value: 0x0000000008668682 |
49 |
| -Name: r9 Value: 0x0000000000000000 |
50 |
| -Name: r10 Value: 0x0000000000001200 |
51 |
| -Name: r11 Value: 0x0000000000000206 |
52 |
| -Name: r12 Value: 0x0000000000000000 |
53 |
| -Name: r13 Value: 0x0000000000000000 |
54 |
| -Name: r14 Value: 0x0000000000000000 |
55 |
| -Name: r15 Value: 0x0000000000000000 |
56 |
| -Name: rip Value: 0x0000000100000dae |
57 |
| -Name: rflags Value: 0x0000000000000206 |
58 |
| -Name: cs Value: 0x0000000000000027 |
59 |
| -Name: fs Value: 0x0000000000000010 |
60 |
| -Name: gs Value: 0x0000000000000048 |
61 |
| -" |
62 |
| - ) SBValue; |
63 |
| -#endif |
64 | 19 | class SBValue
|
65 | 20 | {
|
66 |
| -#ifdef SWIG |
67 |
| - %feature("autodoc", "1"); |
68 |
| -#endif |
69 | 21 | public:
|
70 | 22 | SBValue ();
|
71 | 23 |
|
@@ -150,9 +102,6 @@ class SBValue
|
150 | 102 | lldb::SBValue
|
151 | 103 | GetChildAtIndex (uint32_t idx);
|
152 | 104 |
|
153 |
| -#ifdef SWIG |
154 |
| - %feature("docstring", " |
155 |
| -#endif |
156 | 105 | //------------------------------------------------------------------
|
157 | 106 | /// Get a child value by index from a value.
|
158 | 107 | ///
|
@@ -203,9 +152,6 @@ class SBValue
|
203 | 152 | /// @return
|
204 | 153 | /// A new SBValue object that represents the child member value.
|
205 | 154 | //------------------------------------------------------------------
|
206 |
| -#ifdef SWIG |
207 |
| - ") GetChildAtIndex; |
208 |
| -#endif |
209 | 155 | lldb::SBValue
|
210 | 156 | GetChildAtIndex (uint32_t idx,
|
211 | 157 | lldb::DynamicValueType use_dynamic,
|
|
0 commit comments