[Lldb-commits] [PATCH] D19603: Fix entry point lookup for ObjectFilePECOFF.
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 27 13:58:01 PDT 2016
clayborg added a comment.
Example code to resolve this would be:
Address entry_addr = objfile->GetEntryPointAddress();
lldb::addr_t entry_load_addr = entry_addr.GetLoadAddress(target);
if (entry_load_addr != LLDB_INVALID_ADDRESS)
// We were able to resolve the address as the target has the section loaded
// The section is not loaded in the target yet. We might have a target that hasn't
// been launched yet, the process might have exited, or the address might be
// from a shared library that will get loaded later in the process' lifetime
More information about the lldb-commits