diff --git a/gdb/python/python.c b/gdb/python/python.c index 90d5dc8..c9f2ce9 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1010,7 +1010,9 @@ Enables or disables printing of Python stack traces."), SLASH_STRING, "python", NULL)); #endif + char *argv[] = { "gdb", NULL }; Py_Initialize (); + PySys_SetArgvEx (1, argv, 0); PyEval_InitThreads (); gdb_module = Py_InitModule ("gdb", GdbMethods);