[lldb-mi] Fix breakpoints on functions when C++ namespaces are used.
authorDawn Perchik <dawn@burble.org>
Mon, 27 Jul 2015 17:03:34 +0000 (17:03 +0000)
committerDawn Perchik <dawn@burble.org>
Mon, 27 Jul 2015 17:03:34 +0000 (17:03 +0000)
commitc9a0d3be6953e5aab5d2b2e25d5904f315facc41
tree466bef296f4f6db09c4902c2909e0dc4f1332dfc
parent2e2d680fee8347fab7f90030ba5b634201165f16
[lldb-mi] Fix breakpoints on functions when C++ namespaces are used.

The command "-break-insert ns::foo" for function 'foo' in namespace 'ns'
was being parsed as file:function.  This patch fixes these cases by adding
checks for '::'. (Note: '::func' is not parsed correctly by lldb due to
llvm.org/pr24271).

Reviewed by: ki.stfu
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D11396

llvm-svn: 243281
lldb/test/tools/lldb-mi/breakpoint/TestMiBreak.py
lldb/tools/lldb-mi/MICmdCmdBreak.cpp