From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8612 invoked by alias); 7 Sep 2007 10:59:33 -0000 Received: (qmail 8598 invoked by uid 22791); 7 Sep 2007 10:59:32 -0000 X-Spam-Check-By: sourceware.org Received: from karen.lavabit.com (HELO karen.lavabit.com) (72.249.41.33) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 07 Sep 2007 10:59:22 +0000 Received: from dispatchd.nerdshack.com (jean.lavabit.com [72.249.41.30]) by karen.lavabit.com (Postfix) with SMTP id 3DFEEC7A73; Fri, 7 Sep 2007 05:59:21 -0500 (CDT) Received: from 10.10.10.104 (203.107.142.212) by mail.nerdshack.com with ESMTP Fri, 07 Sep 2007 05:59:21 -0500 In-Reply-To: <20070907015455.GA23872@caradoc.them.org> References: <534370A5-756B-4C87-B21C-329C3BF1E345@nerdshack.com> <20070907015455.GA23872@caradoc.them.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <66804A1A-5EC3-408A-AB67-64BE24EEAA67@nerdshack.com> Cc: gdb@sourceware.org Content-Transfer-Encoding: 7bit From: Brother Josef Subject: Re: Controlling gdb outside the terminal Date: Fri, 07 Sep 2007 11:18:00 -0000 To: Daniel Jacobowitz X-Mailer: Apple Mail (2.752.2) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-09/txt/msg00074.txt.bz2 excellent, thank you. and yes actually I do need to look into MI mode, I'm new to GDB and just now considering it as the future in how I might be debugging. Could I run GDB without that error and continue to write and read from the program from within my Mac app? Could anyone point me to any source code on pseudo-terminals or documents? I have been looking around today and I still can't get a clear picture of how such code would look providing I could even write it. ;) thanks again On Sep 7, 2007, at 8:54 AM, Daniel Jacobowitz wrote: > 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 Regards, Josef