From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12383 invoked by alias); 6 Nov 2009 07:15:10 -0000 Received: (qmail 12349 invoked by uid 22791); 6 Nov 2009 07:15:07 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 06 Nov 2009 07:15:04 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1N6J2F-0003RW-Fl for gdb@sourceware.org; Thu, 05 Nov 2009 23:15:03 -0800 Message-ID: <26227761.post@talk.nabble.com> Date: Fri, 06 Nov 2009 07:15:00 -0000 From: fpga To: gdb@sourceware.org Subject: Re: controlling gdb via python's pexpect In-Reply-To: <26221261.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <26221261.post@talk.nabble.com> 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: 2009-11/txt/msg00054.txt.bz2 Message-ID: <20091106071500.Rwa0vBTimN2cIlotXzXYgz378vfGhXu7U_DQklkPpXQ@z> fpga wrote: > > Can someone please give me an example of how this is done. > I'm afraid the documentation is not helping me. > Thx > George You've got further than I have! I tried to use subprocess but failed. pexpect was suggested by experts on the python forum. Unfortuntely they appear incapable of correcting my trivial example of opening a terminal and sending the command 'gdb' to it. Any snippets most welcome. Looking at my repositories I see libdevel-gdb-perl. I like python's orderliness but have noticed that when python fails perl usually delivers. -- View this message in context: http://old.nabble.com/controlling-gdb-via-python%27s-pexpect-tp26221261p26227761.html Sent from the Sourceware - gdb list mailing list archive at Nabble.com.