[debugger] Prefix search for function names.
Hooks up function name searching for autocomplete for locations ("break" command, etc.). This also completes class and namespace names. The behavior isn't perfect but this is a good first step we can iterate from. Adds some additional test infrastructure to be able to mock targets, and generalize the existing process mocks. Adds a name to the FoundName class since currently namespaces and templates have no way to return the matched name when there is more than one. Previously we were only doing exact matches for these kinds so a separate name was not needed. Change-Id: I44e88165ff66a7b9a6766ff5979da286af6d1bbf
Showing
- src/developer/debug/zxdb/client/BUILD.gn 2 additions, 0 deletionssrc/developer/debug/zxdb/client/BUILD.gn
- src/developer/debug/zxdb/client/mock_process.cc 1 addition, 1 deletionsrc/developer/debug/zxdb/client/mock_process.cc
- src/developer/debug/zxdb/client/mock_process.h 5 additions, 1 deletionsrc/developer/debug/zxdb/client/mock_process.h
- src/developer/debug/zxdb/client/mock_target.cc 26 additions, 0 deletionssrc/developer/debug/zxdb/client/mock_target.cc
- src/developer/debug/zxdb/client/mock_target.h 47 additions, 0 deletionssrc/developer/debug/zxdb/client/mock_target.h
- src/developer/debug/zxdb/console/analyze_memory_unittest.cc 3 additions, 14 deletionssrc/developer/debug/zxdb/console/analyze_memory_unittest.cc
- src/developer/debug/zxdb/console/input_location_parser.cc 73 additions, 3 deletionssrc/developer/debug/zxdb/console/input_location_parser.cc
- src/developer/debug/zxdb/console/input_location_parser_unittest.cc 98 additions, 0 deletions...oper/debug/zxdb/console/input_location_parser_unittest.cc
- src/developer/debug/zxdb/expr/expr_parser_unittest.cc 2 additions, 2 deletionssrc/developer/debug/zxdb/expr/expr_parser_unittest.cc
- src/developer/debug/zxdb/expr/find_name.cc 5 additions, 3 deletionssrc/developer/debug/zxdb/expr/find_name.cc
- src/developer/debug/zxdb/expr/find_name_unittest.cc 15 additions, 68 deletionssrc/developer/debug/zxdb/expr/find_name_unittest.cc
- src/developer/debug/zxdb/expr/found_name.cc 20 additions, 1 deletionsrc/developer/debug/zxdb/expr/found_name.cc
- src/developer/debug/zxdb/expr/found_name.h 8 additions, 1 deletionsrc/developer/debug/zxdb/expr/found_name.h
- src/developer/debug/zxdb/symbols/BUILD.gn 2 additions, 0 deletionssrc/developer/debug/zxdb/symbols/BUILD.gn
- src/developer/debug/zxdb/symbols/index_test_support.cc 53 additions, 0 deletionssrc/developer/debug/zxdb/symbols/index_test_support.cc
- src/developer/debug/zxdb/symbols/index_test_support.h 46 additions, 0 deletionssrc/developer/debug/zxdb/symbols/index_test_support.h
- src/developer/debug/zxdb/symbols/location.h 4 additions, 1 deletionsrc/developer/debug/zxdb/symbols/location.h
Loading
Please register or sign in to comment