This option forces to only set a source line breakpoint when there is an exact-match
This patch includes the following commits:
- Add the -m/--exact-match option in "breakpoint set" command
- Add exact_match arg in BreakpointResolverFileLine ctor
- Add m_exact_match field in BreakpointResolverFileLine
- Add exact_match arg in BreakpointResolverFileRegex ctor
- Add m_exact_match field in BreakpointResolverFileRegex
- Add exact_match arg in Target::CreateSourceRegexBreakpoint
- Add exact_match arg in Target::CreateBreakpoint
- Add -m/--exact-match option in "breakpoint set" command
- Add target.exact-match option to skip BP if source line doesn't match
- Add target.exact-match global option
- Add Target::GetExactMatch
- Refactor Target::CreateSourceRegexBreakpoint to accept LazyBool exact_match (was bool)
- Refactor Target::CreateBreakpoint to accept LazyBool exact_match (was bool)
- Add target.exact-match test in SettingsCommandTestCase
- Add BreakpointOptionsTestCase tests to test --skip-prologue/--exact-match options
- Fix a few typos in lldbutil.check_breakpoint_result func
- Rename --exact-match/m_exact_match/exact_match/GetExactMatch to --move-to-nearest-code/m_move_to_nearest_code/move_to_nearest_code/GetMoveToNearestCode
- Add exact_match field in BreakpointResolverFileLine::GetDescription and BreakpointResolverFileRegex::GetDescription, for example:
was:
1: file = '/Users/IliaK/p/llvm/tools/lldb/test/functionalities/breakpoint/breakpoint_command/main.c', line = 12, locations = 1, resolved = 1, hit count = 2 1.1: where = a.out`main + 20 at main.c:12, address = 0x0000000100000eb4, resolved, hit count = 2
now:
1: file = '/Users/IliaK/p/llvm/tools/lldb/test/functionalities/breakpoint/breakpoint_command/main.c', line = 12, exact_match = 0, locations = 1, resolved = 1, hit count = 2 1.1: where = a.out`main + 20 at main.c:12, address = 0x0000000100000eb4, resolved, hit count = 2