From: Vikash Jain <vikashjin@gmail.com>
To: gdb@sourceware.org
Subject: GDB: error detected on stdin
Date: Tue, 24 May 2011 13:27:00 -0000 [thread overview]
Message-ID: <BANLkTi=dK2wZ8nN86QvWpePEk0DEgLQ2jA@mail.gmail.com> (raw)
Hi All,
I'm trying to pipe commands to gdb but I get the following messages.
Will it cause any problems? How do i resolve the same?
(gdb) Hangup detected on fd 0
error detected on stdin
Python Script
============
#!/usr/local/bin/python
import subprocess
proc=subprocess.Popen('gdb',shell=True,stdin=su
bprocess.PIPE,stdout=subprocess.PIPE,executable="/usr/local/bin/bash")
proc.stdin.write('help')
output=proc.communicate()[0]
print output
Script Log
==========
[XXX@test ~/CAT/example]$ python -u main.py
GNU gdb (GDB) 7.2.50.20110328-cvs
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd6.3".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) Hangup detected on fd 0
error detected on stdin
Best Regards
Vikash Jain
next reply other threads:[~2011-05-24 13:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-24 13:27 Vikash Jain [this message]
2011-05-24 14:32 ` Andreas Schwab
2011-05-24 19:14 ` Tom Tromey
2011-05-25 7:59 ` Andreas Schwab
2011-05-25 8:10 ` Vikash Jain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='BANLkTi=dK2wZ8nN86QvWpePEk0DEgLQ2jA@mail.gmail.com' \
--to=vikashjin@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox