From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20175 invoked by alias); 7 Sep 2007 11:18:04 -0000 Received: (qmail 20166 invoked by uid 22791); 7 Sep 2007 11:18:04 -0000 X-Spam-Check-By: sourceware.org Received: from eastrmmtao106.cox.net (HELO eastrmmtao106.cox.net) (68.230.240.48) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 07 Sep 2007 11:17:54 +0000 Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao106.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20070907111751.YUO14604.eastrmmtao106.cox.net@eastrmimpo01.cox.net>; Fri, 7 Sep 2007 07:17:51 -0400 Received: from black ([70.181.32.198]) by eastrmimpo01.cox.net with bizsmtp id lPHr1X00n4GV2Jm0000000; Fri, 07 Sep 2007 07:17:52 -0400 Received: from bob by black with local (Exim 4.63) (envelope-from ) id 1ITbqR-0005Hi-Js; Fri, 07 Sep 2007 07:17:51 -0400 Date: Fri, 07 Sep 2007 11:46:00 -0000 From: Bob Rossi To: Brother Josef Cc: Daniel Jacobowitz , gdb@sourceware.org Subject: Re: Controlling gdb outside the terminal Message-ID: <20070907111751.GI5805@cox.net> References: <534370A5-756B-4C87-B21C-329C3BF1E345@nerdshack.com> <20070907015455.GA23872@caradoc.them.org> <66804A1A-5EC3-408A-AB67-64BE24EEAA67@nerdshack.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <66804A1A-5EC3-408A-AB67-64BE24EEAA67@nerdshack.com> User-Agent: Mutt/1.5.13 (2006-08-11) 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/msg00075.txt.bz2 On Fri, Sep 07, 2007 at 05:54:40PM +0700, Brother Josef wrote: > 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 Here is a gdb/mi parser. http://cgdb.svn.sourceforge.net/viewvc/cgdb/cgdb/trunk/lib/gdbmi/ I would start out using that. I currently have not used this parser in a production front end yet, however, I expect to do this soon, especially since my push parser patch is finally complete in bison. That means I can convert the parser to being completely non blocking. It is capable of parsing all of the mi commands that the gdb testsuite outputs. Here is the code I use to open a pseudo terminal, http://cgdb.svn.sourceforge.net/viewvc/cgdb/cgdb/trunk/various/util/include/pseudo.h?view=log http://cgdb.svn.sourceforge.net/viewvc/cgdb/cgdb/trunk/various/util/src/pseudo.c?view=log Enjoy, Bob Rossi