[source map] fix relative path breakpoints
authorWalter Erquinigo <wallace@fb.com>
Fri, 30 Jul 2021 01:14:34 +0000 (18:14 -0700)
committerWalter Erquinigo <wallace@fb.com>
Fri, 30 Jul 2021 01:36:06 +0000 (18:36 -0700)
commit0a68443bd07c48dbaf554f6e3b26b3ab5ed1d383
treeabd0778ac2e73c520ca12b4cc23ec8591c301ca1
parentd983499543ee9f5b2fec3d437e0a15acacb9586d
[source map] fix relative path breakpoints

https://reviews.llvm.org/D45592 added a nice feature to be able to specify a breakpoint by a relative path. E.g. passing foo.cpp or bar/foo.cpp or zaz/bar/foo.cpp is fine. However, https://reviews.llvm.org/D68671 by mistake disabled the test that ensured this functionality works. With time, someone made a small mistake and fully broke the functionality.

So, I'm making a very simple fix and the test passes.

Differential Revision: https://reviews.llvm.org/D107126
lldb/source/Breakpoint/BreakpointResolverFileLine.cpp
lldb/test/API/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py