This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Controlling gdb outside the terminal
- From: Daniel Jacobowitz <drow at false dot org>
- To: Brother Josef <thykeeper at nerdshack dot com>
- Cc: gdb at sourceware dot org
- Date: Thu, 6 Sep 2007 21:54:55 -0400
- Subject: Re: Controlling gdb outside the terminal
- References: <534370A5-756B-4C87-B21C-329C3BF1E345@nerdshack.com>
On Fri, Sep 07, 2007 at 08:12:55AM +0700, Brother Josef wrote:
> I have a small amount of UNIX knowledge but have been using the gdb on the
> command line and decided it would be possible to make a GUI to debug Pascal
> under Mac OS X. With my limited knowledge I found that calls to popen and
> reading the stream would work to with most commands but gdb complains "gdb)
> Exception condition detected on fd 0 error detected on stdin". gpd runs a
> seperate process so I think I need to be sending commands to that pid but I
> just can't figure it out. Could anyone point me to some informations? thanks
> for your time.
You need to read up on pseudo-terminals and job control for Unix
systems. However, I don't think you will need to if you use GDB
in MI mode; that is highly recommended for front ends.
--
Daniel Jacobowitz
CodeSourcery