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:
will break on bar::foo, etc… So it tries to parse up the name, and weird names like this can trip it up.
Greg recently fixed some bugs with the -n parsing for ObjC names which might have caused it to break on your names.
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.
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.
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.
Is there a C++ API equivalent to break set -F?
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.