File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
test/API/tools/lldb-dap/moduleSymbols Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 1- int func1 () {
2- return 42 ;
3- }
1+ int func1 () { return 42 ; }
42
5- int func2 () {
6- return 84 ;
7- }
3+ int func2 () { return 84 ; }
84
95int main () {
106 func1 ();
Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ ModuleSymbolsRequestHandler::Run(const ModuleSymbolsArguments &args) const {
5353
5454 const size_t num_symbols = module .GetNumSymbols ();
5555 const size_t start_index = args.startIndex .value_or (0 );
56- const size_t end_index = std::min (start_index + args.count .value_or (num_symbols), num_symbols);
56+ const size_t end_index =
57+ std::min (start_index + args.count .value_or (num_symbols), num_symbols);
5758 for (size_t i = start_index; i < end_index; ++i) {
5859 lldb::SBSymbol symbol = module .GetSymbolAtIndex (i);
5960 if (!symbol.IsValid ())
Original file line number Diff line number Diff line change @@ -988,7 +988,8 @@ struct ModuleSymbolsArguments {
988988 // / The module path.
989989 std::string moduleName;
990990
991- // / The index of the first symbol to return; if omitted, start at the beginning.
991+ // / The index of the first symbol to return; if omitted, start at the
992+ // / beginning.
992993 std::optional<uint32_t > startIndex;
993994
994995 // / The number of symbols to return; if omitted, all symbols are returned.
You can’t perform that action at this time.
0 commit comments