summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-09-14 23:36:40 +0000
committerGreg Clayton <gclayton@apple.com>2010-09-14 23:36:40 +0000
commitf5e56de0809eec71d97f4cc5905f8bd0a4415a50 (patch)
tree5c006894db84ba365b2371957a092dd51dd0ee9f /lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp
parent5f2311dc29c5182b3b5dc07fc5d01ac25eeec877 (diff)
downloadbcm5719-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/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp')
-rw-r--r--lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp b/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp
index ba98cb5a450..963b1f3ea67 100644
--- a/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp
+++ b/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp
@@ -139,14 +139,14 @@ DisassemblerLLVM::Instruction::Dump
int currentOpIndex = -1;
- lldb_private::Process *process = exe_ctx.process;
+ //lldb_private::Process *process = exe_ctx.process;
std::auto_ptr<RegisterReaderArg> rra;
if (!raw)
{
addr_t base_addr = LLDB_INVALID_ADDRESS;
- if (process && process->IsAlive())
- base_addr = inst_addr_ptr->GetLoadAddress (process);
+ if (exe_ctx.target && !exe_ctx.target->GetSectionLoadList().IsEmpty())
+ base_addr = inst_addr_ptr->GetLoadAddress (exe_ctx.target);
if (base_addr == LLDB_INVALID_ADDRESS)
base_addr = inst_addr_ptr->GetFileAddress ();
@@ -246,9 +246,9 @@ DisassemblerLLVM::Instruction::Dump
}
lldb_private::Address so_addr;
- if (process && process->IsAlive())
+ if (exe_ctx.target && !exe_ctx.target->GetSectionLoadList().IsEmpty())
{
- if (process->ResolveLoadAddress (operand_value, so_addr))
+ if (exe_ctx.target->GetSectionLoadList().ResolveLoadAddress (operand_value, so_addr))
so_addr.Dump(&comment, exe_scope, Address::DumpStyleResolvedDescriptionNoModule, Address::DumpStyleSectionNameOffset);
}
else if (inst_addr_ptr)
OpenPOWER on IntegriCloud