<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Nov 5, 2014, at 12:39 PM, Mario Zechner <<a href="mailto:badlogicgames@gmail.com" class="">badlogicgames@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Jim,<div class=""><br class=""></div><div class="">break set -F does indeed work with trunk. Our mangling is a tiny bit awkward (for specific reasons...), so i guess it's not a big deal. We can get by by using the regex version for now.</div><div class=""><br class=""></div><div class="">Is there a C++ API equivalent to break set -F?</div></div></div></blockquote><div class=""><br class=""></div><div class="">Set the name_type_mask option provided to the versions of SBTarget::BreakpointCreateByName that take it to eFunctionNameTypeFull, that is exactly what the -F option to “break set” does.</div><div class=""><br class=""></div><div class="">Jim</div><div class=""><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">Thanks!</div><div class="">Mario</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Nov 5, 2014 at 8:17 PM, Jim Ingham <span dir="ltr" class=""><<a href="mailto:jingham@apple.com" target="_blank" class="">jingham@apple.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Mario,<br class="">
<br class="">
“-n” is trying to do things like<br class="">
<br class="">
(lldb) break set -n foo<br class="">
<br class="">
will break on bar::foo, etc… So it tries to parse up the name, and weird names like this can trip it up.<br class="">
<br class="">
Greg recently fixed some bugs with the -n parsing for ObjC names which might have caused it to break on your names.<br class="">
<br class="">
Does breakpoint setting work when you use “break set -F <NAME>” for these sorts of names. This option does an exact match against the symbol name and doesn’t try to be smart about it, it’s there as a fallback for odd names lldb fails to parse up correctly.<br class="">
<br class="">
Jim<br class="">
<div class=""><div class="h5"><br class="">
> On Nov 5, 2014, at 1:06 AM, Mario Zechner <<a href="mailto:badlogicgames@gmail.com" class="">badlogicgames@gmail.com</a>> wrote:<br class="">
><br class="">
> Hi,<br class="">
><br class="">
> we are using SBTarget::BreakpointCreateByName so set breakpoint on symbol names. This works as long as no special characters are in the symbol name. Our name mangling can produce symbols like:<br class="">
><br class="">
> [J]com.robovm.debug.server.apps.SleepLoop.startingUp()V<br class="">
><br class="">
> for which SBTarget::BreakpointCreateByName fails to resolve locations.<br class="">
><br class="">
> This happens with the latest trunk version of LLDB, it worked with a snapshot from the 29th of September.<br class="">
><br class="">
> We currently work around this issue by using SBTarget::BreakpointCreateByRegex.<br class="">
><br class="">
> Thanks,<br class="">
> Mario<br class="">
</div></div>> _______________________________________________<br class="">
> lldb-dev mailing list<br class="">
> <a href="mailto:lldb-dev@cs.uiuc.edu" class="">lldb-dev@cs.uiuc.edu</a><br class="">
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank" class="">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br class="">
<br class="">
</blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></body></html>