Open
Description
--args
is a very useful and commonly used command for gdb.
Instead of setting set args A B C
everytime when running a program, you can provide arguments to the program using
gdb --args myExecutable -A -B -C D E F
You must make sure that no gdb related arguments come after --args
since they will be interpreted as those for the executable, not gdb.
However, the following codes in run.py seems it appends python command after the gdb_args.
gdb_executable +
" " + gdb_args +
" -ex \\\"python import sys, os; sys.path.insert(0, '"+path+"'); import config, json, base64; config.init(); " +
"config.setJSON(base64.b64decode('"+base64.b64encode(json.dumps(arg_config).encode()).decode()+"').decode()); import gdbfrontend\\\"; read;"
"\" "
It makes the following code buggy
gdbfrontend -G "--args myExecutable -A -B -C D E F
resulting in a silent error even in a verbose mode.
I would appreciate if you fix this issue so that I can invoke my program with --args.