[lldb-dev] breakpoint command

Michael Sartain mikesart at valvesoftware.com
Tue Jul 2 18:52:19 PDT 2013

On Tue, Jul 2, 2013 at 11:20 AM, Greg Clayton <gclayton at apple.com> wrote:

> That sounds fine to me. Since the symbol's start address is already in
> section/offset format, it will be a really quick lookup within the module
> itself to resolve the function.

Something like the below look ok?

Thanks Greg.

Symbol::GetPrologueByteSize ()
            const Address &base_address = m_addr_range.GetBaseAddress();
            Function *function =
            if (function)
                // Functions have line entries which can also potentially
have end of prologue information.
                // So if this symbol points to a function, use the prologue
information from there.
                m_type_data = function->GetPrologueByteSize();
                ... do regular symbol prologue calculations ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130702/5e058f16/attachment.html>

More information about the lldb-dev mailing list