diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2020-01-17 20:45:01 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2020-01-17 20:45:01 +0000 | 
| commit | 706b4fc47bbc608932d3b491ae19a3b9cde9497b (patch) | |
| tree | 4adf86a776049cbf7f69a1929c4babcbbef925eb /lldb/source/Core/ValueObjectVariable.cpp | |
| parent | 7cc9cf2bf09f069cb2dd947ead05d0b54301fb71 (diff) | |
Notes
Diffstat (limited to 'lldb/source/Core/ValueObjectVariable.cpp')
| -rw-r--r-- | lldb/source/Core/ValueObjectVariable.cpp | 45 | 
1 files changed, 0 insertions, 45 deletions
| diff --git a/lldb/source/Core/ValueObjectVariable.cpp b/lldb/source/Core/ValueObjectVariable.cpp index 33f9d5410843..240ebe1fdff3 100644 --- a/lldb/source/Core/ValueObjectVariable.cpp +++ b/lldb/source/Core/ValueObjectVariable.cpp @@ -168,51 +168,6 @@ bool ValueObjectVariable::UpdateValue() {        Process *process = exe_ctx.GetProcessPtr();        const bool process_is_alive = process && process->IsAlive(); -      const uint32_t type_info = compiler_type.GetTypeInfo(); -      const bool is_pointer_or_ref = -          (type_info & (lldb::eTypeIsPointer | lldb::eTypeIsReference)) != 0; - -      switch (value_type) { -      case Value::eValueTypeFileAddress: -        // If this type is a pointer, then its children will be considered load -        // addresses if the pointer or reference is dereferenced, but only if -        // the process is alive. -        // -        // There could be global variables like in the following code: -        // struct LinkedListNode { Foo* foo; LinkedListNode* next; }; -        // Foo g_foo1; -        // Foo g_foo2; -        // LinkedListNode g_second_node = { &g_foo2, NULL }; -        // LinkedListNode g_first_node = { &g_foo1, &g_second_node }; -        // -        // When we aren't running, we should be able to look at these variables -        // using the "target variable" command. Children of the "g_first_node" -        // always will be of the same address type as the parent. But children -        // of the "next" member of LinkedListNode will become load addresses if -        // we have a live process, or remain what a file address if it what a -        // file address. -        if (process_is_alive && is_pointer_or_ref) -          SetAddressTypeOfChildren(eAddressTypeLoad); -        else -          SetAddressTypeOfChildren(eAddressTypeFile); -        break; -      case Value::eValueTypeHostAddress: -        // Same as above for load addresses, except children of pointer or refs -        // are always load addresses. Host addresses are used to store freeze -        // dried variables. If this type is a struct, the entire struct -        // contents will be copied into the heap of the -        // LLDB process, but we do not currently follow any pointers. -        if (is_pointer_or_ref) -          SetAddressTypeOfChildren(eAddressTypeLoad); -        else -          SetAddressTypeOfChildren(eAddressTypeHost); -        break; -      case Value::eValueTypeLoadAddress: -      case Value::eValueTypeScalar: -      case Value::eValueTypeVector: -        SetAddressTypeOfChildren(eAddressTypeLoad); -        break; -      }        switch (value_type) {        case Value::eValueTypeVector: | 
