This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
pexpect doesnt seem able to control bochs like it does gdb???
- From: fpga <mgbg25171 at blueyonder dot co dot uk>
- To: gdb at sourceware dot org
- Date: Thu, 26 Nov 2009 07:54:48 -0800 (PST)
- Subject: pexpect doesnt seem able to control bochs like it does gdb???
I've been controlling qemu with gdb via pexpect.
I'm now trying to control bochs debugger with pexpect
[code]
#!/usr/bin/python
import pexpect, subprocess, time
child = pexpect.spawn('terminator -x bochs\n')
child.expect_exact ('Please choose one: [6] ')
child.send ('6\n')
[/code]
Unfortunately bochs debugger ignores the 6 that is sent.
I just wonder if anyone knows how to get around such "ignorance".
If it's any help...
I note that if I If I press 6 then this works
i.e. it's as if I had inserted 'child.interact()' before sending the 6???
Any advice much appreciated
--
View this message in context: http://old.nabble.com/pexpect-doesnt-seem-able-to-control-bochs-like-it-does-gdb----tp26531395p26531395.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.