diff options
author | Greg Clayton <gclayton@apple.com> | 2011-05-18 01:58:14 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-05-18 01:58:14 +0000 |
commit | cd482e359e464a05b411d634d1172d8701da4b40 (patch) | |
tree | 1ac3c39f0f047aaeadbccb4f84de1bf8113f11d6 /lldb/source/Core/Address.cpp | |
parent | 96254a0d538b7cadc5517365911e1e4b4c557231 (diff) | |
download | bcm5719-llvm-cd482e359e464a05b411d634d1172d8701da4b40.tar.gz bcm5719-llvm-cd482e359e464a05b411d634d1172d8701da4b40.zip |
Added a way to resolve an load address from a target:
bool
Address::SetLoadAddress (lldb::addr_t load_addr, Target *target);
Added an == and != operator to RegisterValue.
Modified the ThreadPlanTracer to use RegisterValue objects to store the
register values when single stepping. Also modified the output to be a bit
less wide.
Fixed the ABIMacOSX_arm to not overwrite stuff on the stack. Also made the
trivial function call be able to set the ARM/Thumbness of the target
correctly, and also sets the return value ARM/Thumbness.
Fixed the encoding on the arm s0-s31 and d16 - d31 registers when the default
register set from a standard GDB server register sets.
llvm-svn: 131517
Diffstat (limited to 'lldb/source/Core/Address.cpp')
-rw-r--r-- | lldb/source/Core/Address.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/Core/Address.cpp b/lldb/source/Core/Address.cpp index 004798e7bd3..b7dd694be1c 100644 --- a/lldb/source/Core/Address.cpp +++ b/lldb/source/Core/Address.cpp @@ -821,3 +821,14 @@ Address::GetAddressClass () const } return eAddressClassUnknown; } + +bool +Address::SetLoadAddress (lldb::addr_t load_addr, Target *target) +{ + if (target && target->GetSectionLoadList().ResolveLoadAddress(load_addr, *this)) + return true; + m_section = NULL; + m_offset = load_addr; + return false; +} + |