(orig_cmdline, path)
| 404 | |
| 405 | |
| 406 | def prepare_mksnapshot_cmdline(orig_cmdline, path): |
| 407 | mksnapshot_bin = path / "mksnapshot" |
| 408 | result = f"gdb --args {mksnapshot_bin} " |
| 409 | for w in orig_cmdline.split(" "): |
| 410 | if w.startswith("gen/") or w.startswith("snapshot_blob"): |
| 411 | result += f"{str(path / w)} " |
| 412 | elif w.startswith("../../"): |
| 413 | result += f"{w[6:]} " |
| 414 | else: |
| 415 | result += f"{w} " |
| 416 | return result |
| 417 | |
| 418 | |
| 419 | def prepare_torque_cmdline(orig_cmdline: str, path): |