Skip to content
Snippets Groups Projects
Commit 66f906ca authored by Lucas Magalhães's avatar Lucas Magalhães
Browse files

Merge branch 'gdb_arguments' into 'master'

Add arguments to GDB option

See merge request !158
parents b5a815ce 3574f93f
No related branches found
No related tags found
1 merge request!158Add arguments to GDB option
Pipeline #174882 failed
......@@ -23,7 +23,7 @@ def iocsh(
cell_path: List[Path],
no_init: bool,
realtime: bool,
gdb: bool,
gdb: str,
valgrind: str,
debug: bool,
):
......@@ -87,8 +87,8 @@ def iocsh(
tmp_startup_script.name,
]
if gdb:
cmd = ["gdb", "--args", cmd]
if gdb is not None:
cmd = ["gdb"] + gdb.split(" ") + ["--args"] + cmd
elif valgrind:
cmd = ["valgrind"] + valgrind.split(" ") + cmd
elif realtime:
......@@ -158,7 +158,9 @@ def generate_parser() -> argparse.ArgumentParser:
mutex_group_modifiers.add_argument(
"-dg",
"--gdb",
action="store_true",
nargs="?",
const="",
metavar="ARGUMENT",
help="run with gdb",
)
mutex_group_modifiers.add_argument(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment