* pexpect doesnt seem able to control bochs like it does gdb???
@ 2009-11-26 18:28 fpga
2009-11-26 18:32 ` Joel Brobecker
2009-11-26 21:35 ` Gaius Mulley
0 siblings, 2 replies; 3+ messages in thread
From: fpga @ 2009-11-26 18:28 UTC (permalink / raw)
To: 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: pexpect doesnt seem able to control bochs like it does gdb???
2009-11-26 18:28 pexpect doesnt seem able to control bochs like it does gdb??? fpga
@ 2009-11-26 18:32 ` Joel Brobecker
2009-11-26 21:35 ` Gaius Mulley
1 sibling, 0 replies; 3+ messages in thread
From: Joel Brobecker @ 2009-11-26 18:32 UTC (permalink / raw)
To: fpga; +Cc: gdb
> 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...
That really is a question for the Python community. Have you tried there?
--
Joel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: pexpect doesnt seem able to control bochs like it does gdb???
2009-11-26 18:28 pexpect doesnt seem able to control bochs like it does gdb??? fpga
2009-11-26 18:32 ` Joel Brobecker
@ 2009-11-26 21:35 ` Gaius Mulley
1 sibling, 0 replies; 3+ messages in thread
From: Gaius Mulley @ 2009-11-26 21:35 UTC (permalink / raw)
To: fpga; +Cc: gdb
fpga <mgbg25171@blueyonder.co.uk> writes:
> 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
Hi,
I could be very wrong - but it might be worth seeing if changing the code
> child.send ('6\n')
to
child.sendline('6')
helps..
regards,
Gaius
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-26 17:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-26 18:28 pexpect doesnt seem able to control bochs like it does gdb??? fpga
2009-11-26 18:32 ` Joel Brobecker
2009-11-26 21:35 ` Gaius Mulley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox