diff options
author | Jim Ingham <jingham@apple.com> | 2011-03-07 23:44:08 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2011-03-07 23:44:08 +0000 |
commit | 672e6f59c5e487b83b81c8b13ce162dfda7fdddf (patch) | |
tree | 9172f417067f8fa5c3591dc80174639e99a5685b /lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h | |
parent | 77ad1dc56dcd64faa3fe718cb4133242ead2f5b0 (diff) | |
download | bcm5719-llvm-672e6f59c5e487b83b81c8b13ce162dfda7fdddf.tar.gz bcm5719-llvm-672e6f59c5e487b83b81c8b13ce162dfda7fdddf.zip |
Add a method "GetEntryPoint" to the ObjectFile class, and implement it on MachO & ELF - though the ELF implementation is probably a little weak. Then use this method in place of directly looking for "start" in the ThreadPlanCallFunction constructor to find the stopping point for our function evaluation.
llvm-svn: 127194
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h index c20ff1e4106..1289b9d3e28 100644 --- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h +++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h @@ -12,6 +12,7 @@ #include "llvm/Support/MachO.h" +#include "lldb/Core/Address.h" #include "lldb/Host/FileSpec.h" #include "lldb/Host/Mutex.h" #include "lldb/Symbol/ObjectFile.h" @@ -112,7 +113,8 @@ public: virtual lldb_private::Log * EnablePluginLogging (lldb_private::Stream *strm, lldb_private::Args &command); - + virtual lldb_private::Address + GetEntryPointAddress (); protected: mutable lldb_private::Mutex m_mutex; @@ -123,6 +125,7 @@ protected: llvm::MachO::dysymtab_command m_dysymtab; std::vector<llvm::MachO::segment_command_64> m_mach_segments; std::vector<llvm::MachO::section_64> m_mach_sections; + lldb_private::Address m_entry_point_address; size_t ParseSections (); |