Commit 40e102c1 authored by Martin Panter's avatar Martin Panter

Issue #25820: Remove unused assignment and redundant GDB CLI arguments

These were added in revision b71cda2f48c6.
parent 6e9d2e68
......@@ -89,7 +89,6 @@ if not gdbpy_version:
# Verify that "gdb" can load our custom hooks, as OS security settings may
# disallow this without a customised .gdbinit.
cmd = ['--args', sys.executable]
_, gdbpy_errors = run_gdb('--args', sys.executable)
if "auto-loading has been declined" in gdbpy_errors:
msg = "gdb security settings prevent use of custom hooks: "
......@@ -171,8 +170,7 @@ class DebuggerTests(unittest.TestCase):
# print commands
# Use "commands" to generate the arguments with which to invoke "gdb":
args = ["gdb", "--batch", "-nx"]
args += ['--eval-command=%s' % cmd for cmd in commands]
args = ['--eval-command=%s' % cmd for cmd in commands]
args += ["--args",
sys.executable]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment