@@ -500,7 +500,10 @@ void CommandInterpreter::LoadCommandDictionary() {
500500 m_command_dict[" language" ] =
501501 CommandObjectSP (new CommandObjectLanguage (*this ));
502502
503+ // clang-format off
503504 const char *break_regexes[][2 ] = {
505+ {" ^(.*[^[:space:]])[[:space:]]*:[[:space:]]*([[:digit:]]+)[[:space:]]*:[[:space:]]*([[:digit:]]+)[[:space:]]*$" ,
506+ " breakpoint set --file '%1' --line %2 --column %3" },
504507 {" ^(.*[^[:space:]])[[:space:]]*:[[:space:]]*([[:digit:]]+)[[:space:]]*$" ,
505508 " breakpoint set --file '%1' --line %2" },
506509 {" ^/([^/]+)/$" , " breakpoint set --source-pattern-regexp '%1'" },
@@ -515,6 +518,7 @@ void CommandInterpreter::LoadCommandDictionary() {
515518 " breakpoint set --name '%1' --skip-prologue=0" },
516519 {" ^[\" ']?(.*[^[:space:]\" '])[\" ']?[[:space:]]*$" ,
517520 " breakpoint set --name '%1'" }};
521+ // clang-format on
518522
519523 size_t num_regexes = llvm::array_lengthof (break_regexes);
520524
@@ -523,6 +527,9 @@ void CommandInterpreter::LoadCommandDictionary() {
523527 *this , " _regexp-break" ,
524528 " Set a breakpoint using one of several shorthand formats." ,
525529 " \n "
530+ " _regexp-break <filename>:<linenum>:<colnum>\n "
531+ " main.c:12:21 // Break at line 12 and column "
532+ " 21 of main.c\n\n "
526533 " _regexp-break <filename>:<linenum>\n "
527534 " main.c:12 // Break at line 12 of "
528535 " main.c\n\n "
@@ -546,7 +553,7 @@ void CommandInterpreter::LoadCommandDictionary() {
546553 " current file\n "
547554 " // containing text 'break "
548555 " here'.\n " ,
549- 2 ,
556+ 3 ,
550557 CommandCompletions::eSymbolCompletion |
551558 CommandCompletions::eSourceFileCompletion,
552559 false ));
@@ -573,6 +580,9 @@ void CommandInterpreter::LoadCommandDictionary() {
573580 *this , " _regexp-tbreak" ,
574581 " Set a one-shot breakpoint using one of several shorthand formats." ,
575582 " \n "
583+ " _regexp-break <filename>:<linenum>:<colnum>\n "
584+ " main.c:12:21 // Break at line 12 and column "
585+ " 21 of main.c\n\n "
576586 " _regexp-break <filename>:<linenum>\n "
577587 " main.c:12 // Break at line 12 of "
578588 " main.c\n\n "
0 commit comments