0
我在Windows XP中使用python 2.5。 在这里,我正在使用子进程来运行我的shell, 现在我该如何运行 gdb在shell中使用子进程。我无法与由Popen创建的子进程交互
我的代码:
PID = subprocess.Popen('C:/STM/STxP70_Toolset_2010.2/bin/STxP70.bat', shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE).
现在外壳打开,旁边 如果我尝试使用
PID.communicate( “广发行”)进行通信运行GDB,
“GDB”没有在shell中运行。
我应该为此做些什么。
你在说什么? – Falmarri 2011-01-27 05:27:53
http://stackoverflow.com/questions/3482869/invoke-and-control-gdb-from-python看起来好像它可能是你以后。很难说出你在问什么。 – 2011-01-27 05:32:35