@@ -500,7 +500,10 @@ void CommandInterpreter::LoadCommandDictionary() {
500
500
m_command_dict[" language" ] =
501
501
CommandObjectSP (new CommandObjectLanguage (*this ));
502
502
503
+ // clang-format off
503
504
const char *break_regexes[][2 ] = {
505
+ {" ^(.*[^[:space:]])[[:space:]]*:[[:space:]]*([[:digit:]]+)[[:space:]]*:[[:space:]]*([[:digit:]]+)[[:space:]]*$" ,
506
+ " breakpoint set --file '%1' --line %2 --column %3" },
504
507
{" ^(.*[^[:space:]])[[:space:]]*:[[:space:]]*([[:digit:]]+)[[:space:]]*$" ,
505
508
" breakpoint set --file '%1' --line %2" },
506
509
{" ^/([^/]+)/$" , " breakpoint set --source-pattern-regexp '%1'" },
@@ -515,6 +518,7 @@ void CommandInterpreter::LoadCommandDictionary() {
515
518
" breakpoint set --name '%1' --skip-prologue=0" },
516
519
{" ^[\" ']?(.*[^[:space:]\" '])[\" ']?[[:space:]]*$" ,
517
520
" breakpoint set --name '%1'" }};
521
+ // clang-format on
518
522
519
523
size_t num_regexes = llvm::array_lengthof (break_regexes);
520
524
@@ -523,6 +527,9 @@ void CommandInterpreter::LoadCommandDictionary() {
523
527
*this , " _regexp-break" ,
524
528
" Set a breakpoint using one of several shorthand formats." ,
525
529
" \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 "
526
533
" _regexp-break <filename>:<linenum>\n "
527
534
" main.c:12 // Break at line 12 of "
528
535
" main.c\n\n "
@@ -546,7 +553,7 @@ void CommandInterpreter::LoadCommandDictionary() {
546
553
" current file\n "
547
554
" // containing text 'break "
548
555
" here'.\n " ,
549
- 2 ,
556
+ 3 ,
550
557
CommandCompletions::eSymbolCompletion |
551
558
CommandCompletions::eSourceFileCompletion,
552
559
false ));
@@ -573,6 +580,9 @@ void CommandInterpreter::LoadCommandDictionary() {
573
580
*this , " _regexp-tbreak" ,
574
581
" Set a one-shot breakpoint using one of several shorthand formats." ,
575
582
" \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 "
576
586
" _regexp-break <filename>:<linenum>\n "
577
587
" main.c:12 // Break at line 12 of "
578
588
" main.c\n\n "
0 commit comments