diff options
author | emaste <emaste@FreeBSD.org> | 2014-03-19 13:11:35 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2014-03-19 13:11:35 +0000 |
commit | 958843c32b7a29741f2e45996b5b3e89f9e108b0 (patch) | |
tree | 95ae4ffabc848a86b94be3ad3cd42471cdb66b06 /contrib/llvm/tools/lldb/source/Expression/Materializer.cpp | |
parent | 2a9993c246f3a2463ccd6b8786781e5b97a35065 (diff) | |
download | FreeBSD-src-958843c32b7a29741f2e45996b5b3e89f9e108b0.zip FreeBSD-src-958843c32b7a29741f2e45996b5b3e89f9e108b0.tar.gz |
MFC r258054: Update LLDB to upstream r194122 snapshot
Inludes minor changes relative to upstream, for compatibility with
FreeBSD's in-tree LLVM 3.3:
- Reverted LLDB r191806, restoring use of previous API.
- Reverted part of LLDB r189317, restoring previous enum names.
- Work around missing LLVM r192504, using previous registerEHFrames API
(limited functionality).
- Removed PlatformWindows header include and init/terminate calls.
Sponsored by: DARPA, AFRL
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Expression/Materializer.cpp')
-rw-r--r-- | contrib/llvm/tools/lldb/source/Expression/Materializer.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/contrib/llvm/tools/lldb/source/Expression/Materializer.cpp b/contrib/llvm/tools/lldb/source/Expression/Materializer.cpp index 8a1900e..fb9522f 100644 --- a/contrib/llvm/tools/lldb/source/Expression/Materializer.cpp +++ b/contrib/llvm/tools/lldb/source/Expression/Materializer.cpp @@ -461,17 +461,11 @@ public: } else { - Error get_address_error; - lldb::ValueObjectSP addr_of_valobj_sp = valobj_sp->AddressOf(get_address_error); - if (get_address_error.Success()) + lldb::addr_t addr_of_valobj = valobj_sp->GetAddressOf(); + if (addr_of_valobj != LLDB_INVALID_ADDRESS) { - DataExtractor valobj_extractor; - addr_of_valobj_sp->GetData(valobj_extractor); - lldb::offset_t offset = 0; - lldb::addr_t addr_of_valobj_addr = valobj_extractor.GetAddress(&offset); - Error write_error; - map.WritePointerToMemory(load_addr, addr_of_valobj_addr, write_error); + map.WritePointerToMemory(load_addr, addr_of_valobj, write_error); if (!write_error.Success()) { @@ -839,7 +833,7 @@ public: name, address, eAddressTypeLoad, - ret->GetByteSize()); + map.GetAddressByteSize()); } ret->ValueUpdated(); |