@@ -486,7 +486,10 @@ void CommandInterpreter::LoadCommandDictionary() {
486
486
m_command_dict[" language" ] =
487
487
CommandObjectSP (new CommandObjectLanguage (*this ));
488
488
489
+ // clang-format off
489
490
const char *break_regexes[][2 ] = {
491
+ {" ^(.*[^[:space:]])[[:space:]]*:[[:space:]]*([[:digit:]]+)[[:space:]]*:[[:space:]]*([[:digit:]]+)[[:space:]]*$" ,
492
+ " breakpoint set --file '%1' --line %2 --column %3" },
490
493
{" ^(.*[^[:space:]])[[:space:]]*:[[:space:]]*([[:digit:]]+)[[:space:]]*$" ,
491
494
" breakpoint set --file '%1' --line %2" },
492
495
{" ^/([^/]+)/$" , " breakpoint set --source-pattern-regexp '%1'" },
@@ -501,6 +504,7 @@ void CommandInterpreter::LoadCommandDictionary() {
501
504
" breakpoint set --name '%1' --skip-prologue=0" },
502
505
{" ^[\" ']?(.*[^[:space:]\" '])[\" ']?[[:space:]]*$" ,
503
506
" breakpoint set --name '%1'" }};
507
+ // clang-format on
504
508
505
509
size_t num_regexes = llvm::array_lengthof (break_regexes);
506
510
@@ -509,6 +513,9 @@ void CommandInterpreter::LoadCommandDictionary() {
509
513
*this , " _regexp-break" ,
510
514
" Set a breakpoint using one of several shorthand formats." ,
511
515
" \n "
516
+ " _regexp-break <filename>:<linenum>:<colnum>\n "
517
+ " main.c:12:21 // Break at line 12 and column "
518
+ " 21 of main.c\n\n "
512
519
" _regexp-break <filename>:<linenum>\n "
513
520
" main.c:12 // Break at line 12 of "
514
521
" main.c\n\n "
@@ -532,7 +539,7 @@ void CommandInterpreter::LoadCommandDictionary() {
532
539
" current file\n "
533
540
" // containing text 'break "
534
541
" here'.\n " ,
535
- 2 ,
542
+ 3 ,
536
543
CommandCompletions::eSymbolCompletion |
537
544
CommandCompletions::eSourceFileCompletion,
538
545
false ));
@@ -559,6 +566,9 @@ void CommandInterpreter::LoadCommandDictionary() {
559
566
*this , " _regexp-tbreak" ,
560
567
" Set a one-shot breakpoint using one of several shorthand formats." ,
561
568
" \n "
569
+ " _regexp-break <filename>:<linenum>:<colnum>\n "
570
+ " main.c:12:21 // Break at line 12 and column "
571
+ " 21 of main.c\n\n "
562
572
" _regexp-break <filename>:<linenum>\n "
563
573
" main.c:12 // Break at line 12 of "
564
574
" main.c\n\n "
0 commit comments