File tree 1 file changed +18
-12
lines changed
1 file changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -765,18 +765,6 @@ def main():
765
765
security = parser .add_argument_group (title = "security settings" )
766
766
other = parser .add_argument_group (title = "other settings" )
767
767
768
- gdb_group .add_argument (
769
- "cmd" ,
770
- nargs = "*" ,
771
- help = "The binary and arguments to run in gdb. Example: './mybinary myarg -flag1 -flag2'" ,
772
- default = [],
773
- )
774
- gdb_group .add_argument (
775
- "--args" ,
776
- nargs = "+" ,
777
- help = 'Alias for cmd argument above. Example: gdbgui --args "./mybinary myarg -flag1 -flag2"' ,
778
- default = [],
779
- )
780
768
gdb_group .add_argument (
781
769
"-x" , "--gdb_cmd_file" , help = "Execute GDB commands from file."
782
770
)
@@ -864,6 +852,24 @@ def main():
864
852
"Pass this flag when debugging gdbgui itself to automatically reload the server when changes are detected" ,
865
853
action = "store_true" ,
866
854
)
855
+
856
+ gdb_group .add_argument (
857
+ "--args" ,
858
+ nargs = argparse .REMAINDER ,
859
+ help = 'All remaining args are taken as the binary and arguments to run'
860
+ ' in gdb (as with gdb --args).'
861
+ ' Example: gdbgui [...] --args ./mybinary myarg -flag1 -flag2' ,
862
+ default = [],
863
+ )
864
+ gdb_group .add_argument (
865
+ "cmd" ,
866
+ nargs = '?' ,
867
+ help = 'Name of the binary to run in gdb. To pass flags to the binary,'
868
+ ' use --args.'
869
+ ' Example: gdbgui ./mybinary [gdbgui-args...]' ,
870
+ default = [],
871
+ )
872
+
867
873
args = parser .parse_args ()
868
874
869
875
initialize_preferences ()
You can’t perform that action at this time.
0 commit comments