The command "-break-insert ns::foo" for function 'foo' in namespace 'ns'
was being parsed as file:function, and the command "-break-insert file:::foo" for global function 'foo' in file 'file' was being parsed as 'file::' + ':' + 'foo'. This patch fixes these cases by adding checks for '::' and ':::'. (Note: '::func' is not parsed correctly by lldb, but that's a different bug...)
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
This patch isn't quite right as it doesn't handle foo.c:std::string. will post new patch...
Setting breakpoints on ::func doesn't work in lldb! It needs to be fixed there first. If/when it is fixed, I will add a test.
(lldb) br set --name ::func Breakpoint 6: no locations (pending). WARNING: Unable to resolve breakpoint to any actual locations.
Please add this test and comment it out with FIXME explanation why it's disabled. Also, could you please create a bug for this and add a link in FIXME?
I don't have an account on bugzilla and don't want to create one due to the warnings about public e-mails. Can you add the bug for me please?
I will add a test and comment it out (but won't bother to resubmit new patch just for that minor addition). Ok to commit?
Comment about "::func" syntax not working in lldb added as requested. Please accept this patch - it fixes namespace tokens used in lldb-mi breakpoints like "-break-insert ns::func". Patches to lldb and other issues are not intended to be part of this patch and should be handled separately. Thank you.
Add a link to the bug please and go ahead.
test/tools/lldb-mi/breakpoint/TestMiBreak.py | ||
---|---|---|
79 ↗ | (On Diff #30609) | Add a link to the bug please: "llvm.org/pr24271" |