diff options
| author | Greg Clayton <gclayton@apple.com> | 2010-09-14 23:36:40 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2010-09-14 23:36:40 +0000 |
| commit | f5e56de0809eec71d97f4cc5905f8bd0a4415a50 (patch) | |
| tree | 5c006894db84ba365b2371957a092dd51dd0ee9f /lldb/source/Core/ValueObject.cpp | |
| parent | 5f2311dc29c5182b3b5dc07fc5d01ac25eeec877 (diff) | |
| download | bcm5719-llvm-f5e56de0809eec71d97f4cc5905f8bd0a4415a50.tar.gz bcm5719-llvm-f5e56de0809eec71d97f4cc5905f8bd0a4415a50.zip | |
Moved the section load list up into the target so we can use the target
to symbolicate things without the need for a valid process subclass.
llvm-svn: 113895
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
| -rw-r--r-- | lldb/source/Core/ValueObject.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index 83206912ba3..cd087f8b90d 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -10,6 +10,8 @@ #include "lldb/Core/ValueObject.h" // C Includes +#include <stdlib.h> + // C++ Includes // Other libraries and framework includes #include "llvm/Support/raw_ostream.h" @@ -27,8 +29,8 @@ #include "lldb/Target/ExecutionContext.h" #include "lldb/Target/Process.h" #include "lldb/Target/RegisterContext.h" +#include "lldb/Target/Target.h" #include "lldb/Target/Thread.h" -#include <stdlib.h> using namespace lldb; using namespace lldb_private; @@ -495,10 +497,10 @@ ValueObject::GetSummaryAsCString (ExecutionContextScope *exe_scope) case eAddressTypeLoad: { Address so_addr; - Process *process = exe_scope->CalculateProcess(); - if (process != NULL) + Target *target = exe_scope->CalculateTarget(); + if (target && target->GetSectionLoadList().IsEmpty() == false) { - if (process->ResolveLoadAddress(func_ptr_address, so_addr)) + if (target->GetSectionLoadList().ResolveLoadAddress(func_ptr_address, so_addr)) { so_addr.Dump (&sstr, exe_scope, |

