PR python/13199:
* python/python.c (finish_python_initialization): Set sys.argv.
This commit is contained in:
parent
f3f5162ecf
commit
065a711fc5
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-01-10 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
PR python/13199:
|
||||||
|
* python/python.c (finish_python_initialization): Set sys.argv.
|
||||||
|
|
||||||
2012-01-10 Doug Evans <dje@google.com>
|
2012-01-10 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
* dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
|
* dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
|
||||||
|
|
|
@ -1366,6 +1366,9 @@ def GdbSetPythonDirectory (dir):\n\
|
||||||
GdbSetPythonDirectory (gdb.PYTHONDIR)\n\
|
GdbSetPythonDirectory (gdb.PYTHONDIR)\n\
|
||||||
# Default prompt hook does nothing.\n\
|
# Default prompt hook does nothing.\n\
|
||||||
prompt_hook = None\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);
|
do_cleanups (cleanup);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue