diff options
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r-- | gdb/python/python.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index 5212d4e..5a0d776 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1366,6 +1366,9 @@ def GdbSetPythonDirectory (dir):\n\ GdbSetPythonDirectory (gdb.PYTHONDIR)\n\ # Default prompt hook does nothing.\n\ prompt_hook = None\n\ +# Ensure that sys.argv is set to something.\n\ +# We do not use PySys_SetArgvEx because it did not appear until 2.6.6.\n\ +sys.argv = ['']\n\ "); do_cleanups (cleanup); |