@@ -612,7 +612,6 @@ void CommandInterpreter::LoadCommandDictionary() {
612
612
" current file\n "
613
613
" // containing text 'break "
614
614
" here'.\n " ,
615
- 3 ,
616
615
CommandCompletions::eSymbolCompletion |
617
616
CommandCompletions::eSourceFileCompletion,
618
617
false ));
@@ -666,7 +665,6 @@ void CommandInterpreter::LoadCommandDictionary() {
666
665
" current file\n "
667
666
" // containing text 'break "
668
667
" here'.\n " ,
669
- 2 ,
670
668
CommandCompletions::eSymbolCompletion |
671
669
CommandCompletions::eSourceFileCompletion,
672
670
false ));
@@ -694,7 +692,7 @@ void CommandInterpreter::LoadCommandDictionary() {
694
692
std::unique_ptr<CommandObjectRegexCommand> attach_regex_cmd_up (
695
693
new CommandObjectRegexCommand (
696
694
*this , " _regexp-attach" , " Attach to process by ID or name." ,
697
- " _regexp-attach <pid> | <process-name>" , 2 , 0 , false ));
695
+ " _regexp-attach <pid> | <process-name>" , 0 , false ));
698
696
if (attach_regex_cmd_up) {
699
697
if (attach_regex_cmd_up->AddRegexCommand (" ^([0-9]+)[[:space:]]*$" ,
700
698
" process attach --pid %1" ) &&
@@ -716,7 +714,7 @@ void CommandInterpreter::LoadCommandDictionary() {
716
714
" Select a newer stack frame. Defaults to "
717
715
" moving one frame, a numeric argument can "
718
716
" specify an arbitrary number." ,
719
- " _regexp-down [<count>]" , 2 , 0 , false ));
717
+ " _regexp-down [<count>]" , 0 , false ));
720
718
if (down_regex_cmd_up) {
721
719
if (down_regex_cmd_up->AddRegexCommand (" ^$" , " frame select -r -1" ) &&
722
720
down_regex_cmd_up->AddRegexCommand (" ^([0-9]+)$" ,
@@ -732,7 +730,7 @@ void CommandInterpreter::LoadCommandDictionary() {
732
730
*this , " _regexp-up" ,
733
731
" Select an older stack frame. Defaults to moving one "
734
732
" frame, a numeric argument can specify an arbitrary number." ,
735
- " _regexp-up [<count>]" , 2 , 0 , false ));
733
+ " _regexp-up [<count>]" , 0 , false ));
736
734
if (up_regex_cmd_up) {
737
735
if (up_regex_cmd_up->AddRegexCommand (" ^$" , " frame select -r 1" ) &&
738
736
up_regex_cmd_up->AddRegexCommand (" ^([0-9]+)$" , " frame select -r %1" )) {
@@ -746,7 +744,7 @@ void CommandInterpreter::LoadCommandDictionary() {
746
744
new CommandObjectRegexCommand (
747
745
*this , " _regexp-display" ,
748
746
" Evaluate an expression at every stop (see 'help target stop-hook'.)" ,
749
- " _regexp-display expression" , 2 , 0 , false ));
747
+ " _regexp-display expression" , 0 , false ));
750
748
if (display_regex_cmd_up) {
751
749
if (display_regex_cmd_up->AddRegexCommand (
752
750
" ^(.+)$" , " target stop-hook add -o \" expr -- %1\" " )) {
@@ -760,7 +758,7 @@ void CommandInterpreter::LoadCommandDictionary() {
760
758
new CommandObjectRegexCommand (*this , " _regexp-undisplay" ,
761
759
" Stop displaying expression at every "
762
760
" stop (specified by stop-hook index.)" ,
763
- " _regexp-undisplay stop-hook-number" , 2 , 0 ,
761
+ " _regexp-undisplay stop-hook-number" , 0 ,
764
762
false ));
765
763
if (undisplay_regex_cmd_up) {
766
764
if (undisplay_regex_cmd_up->AddRegexCommand (" ^([0-9]+)$" ,
@@ -778,7 +776,7 @@ void CommandInterpreter::LoadCommandDictionary() {
778
776
" If no host is specifed, localhost is assumed.\n "
779
777
" gdb-remote is an abbreviation for 'process connect --plugin "
780
778
" gdb-remote connect://<hostname>:<port>'\n " ,
781
- " gdb-remote [<hostname>:]<portnum>" , 2 , 0 , false ));
779
+ " gdb-remote [<hostname>:]<portnum>" , 0 , false ));
782
780
if (connect_gdb_remote_cmd_up) {
783
781
if (connect_gdb_remote_cmd_up->AddRegexCommand (
784
782
" ^([^:]+|\\ [[0-9a-fA-F:]+.*\\ ]):([0-9]+)$" ,
@@ -798,7 +796,7 @@ void CommandInterpreter::LoadCommandDictionary() {
798
796
" If no UDP port is specified, port 41139 is assumed.\n "
799
797
" kdp-remote is an abbreviation for 'process connect --plugin "
800
798
" kdp-remote udp://<hostname>:<port>'\n " ,
801
- " kdp-remote <hostname>[:<portnum>]" , 2 , 0 , false ));
799
+ " kdp-remote <hostname>[:<portnum>]" , 0 , false ));
802
800
if (connect_kdp_remote_cmd_up) {
803
801
if (connect_kdp_remote_cmd_up->AddRegexCommand (
804
802
" ^([^:]+:[[:digit:]]+)$" ,
@@ -818,7 +816,7 @@ void CommandInterpreter::LoadCommandDictionary() {
818
816
" frames. The argument 'all' displays all threads. Use 'settings"
819
817
" set frame-format' to customize the printing of individual frames "
820
818
" and 'settings set thread-format' to customize the thread header." ,
821
- " bt [<digit> | all]" , 2 , 0 , false ));
819
+ " bt [<digit> | all]" , 0 , false ));
822
820
if (bt_regex_cmd_up) {
823
821
// accept but don't document "bt -c <number>" -- before bt was a regex
824
822
// command if you wanted to backtrace three frames you would do "bt -c 3"
@@ -847,7 +845,7 @@ void CommandInterpreter::LoadCommandDictionary() {
847
845
" _regexp-list 0x<address> // List around specified address\n "
848
846
" _regexp-list -[<count>] // List previous <count> lines\n "
849
847
" _regexp-list // List subsequent lines" ,
850
- 2 , CommandCompletions::eSourceFileCompletion, false ));
848
+ CommandCompletions::eSourceFileCompletion, false ));
851
849
if (list_regex_cmd_up) {
852
850
if (list_regex_cmd_up->AddRegexCommand (" ^([0-9]+)[[:space:]]*$" ,
853
851
" source list --line %1" ) &&
@@ -879,7 +877,7 @@ void CommandInterpreter::LoadCommandDictionary() {
879
877
" \n "
880
878
" _regexp-env // Show environment\n "
881
879
" _regexp-env <name>=<value> // Set an environment variable" ,
882
- 2 , 0 , false ));
880
+ 0 , false ));
883
881
if (env_regex_cmd_up) {
884
882
if (env_regex_cmd_up->AddRegexCommand (" ^$" ,
885
883
" settings show target.env-vars" ) &&
@@ -899,7 +897,7 @@ void CommandInterpreter::LoadCommandDictionary() {
899
897
" _regexp-jump +<line-offset> | -<line-offset>\n "
900
898
" _regexp-jump <file>:<line>\n "
901
899
" _regexp-jump *<addr>\n " ,
902
- 2 , 0 , false ));
900
+ 0 , false ));
903
901
if (jump_regex_cmd_up) {
904
902
if (jump_regex_cmd_up->AddRegexCommand (" ^\\ *(.*)$" ,
905
903
" thread jump --addr %1" ) &&
0 commit comments