forked from OSchip/llvm-project
Implement ProcessLinux::GetImageInfoAddress().
llvm-svn: 123499
This commit is contained in:
parent
7f3b57ca35
commit
c4391cb11e
|
@ -149,6 +149,19 @@ ProcessLinux::DoResume()
|
||||||
return Error();
|
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
|
Error
|
||||||
ProcessLinux::DoHalt(bool &caused_stop)
|
ProcessLinux::DoHalt(bool &caused_stop)
|
||||||
{
|
{
|
||||||
|
|
|
@ -128,6 +128,9 @@ public:
|
||||||
virtual lldb::ByteOrder
|
virtual lldb::ByteOrder
|
||||||
GetByteOrder() const;
|
GetByteOrder() const;
|
||||||
|
|
||||||
|
virtual lldb::addr_t
|
||||||
|
GetImageInfoAddress();
|
||||||
|
|
||||||
//------------------------------------------------------------------
|
//------------------------------------------------------------------
|
||||||
// PluginInterface protocol
|
// PluginInterface protocol
|
||||||
//------------------------------------------------------------------
|
//------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue