Implement ProcessLinux::GetImageInfoAddress().

llvm-svn: 123499
This commit is contained in:
Stephen Wilson 2011-01-15 00:10:37 +00:00
parent 7f3b57ca35
commit c4391cb11e
2 changed files with 16 additions and 0 deletions

View File

@ -149,6 +149,19 @@ ProcessLinux::DoResume()
return Error();
}
addr_t
ProcessLinux::GetImageInfoAddress()
{
Target *target = &GetTarget();
ObjectFile *obj_file = target->GetExecutableModule()->GetObjectFile();
Address addr = obj_file->GetImageInfoAddress();
if (addr.IsValid())
return addr.GetLoadAddress(target);
else
return LLDB_INVALID_ADDRESS;
}
Error
ProcessLinux::DoHalt(bool &caused_stop)
{

View File

@ -128,6 +128,9 @@ public:
virtual lldb::ByteOrder
GetByteOrder() const;
virtual lldb::addr_t
GetImageInfoAddress();
//------------------------------------------------------------------
// PluginInterface protocol
//------------------------------------------------------------------