From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15264 invoked by alias); 6 Nov 2009 07:19:08 -0000 Received: (qmail 15253 invoked by uid 22791); 6 Nov 2009 07:19: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:19:01 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1N6J64-0003jA-DE for gdb@sourceware.org; Thu, 05 Nov 2009 23:19:00 -0800 Message-ID: <26227761.post@talk.nabble.com> Date: Fri, 06 Nov 2009 10:23:00 -0000 From: fpga To: gdb@sourceware.org Subject: Re: controlling gdb via python's pexpect MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/msg00057.txt.bz2 Message-ID: <20091106102300.VgfV5kGHLu9hLlo5c7WwpT7KRBz2Dt9eAq7Vji6HDj4@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 > Thx George You've got further than I have! I tried to use subprocess before trying pexpect but failed. pexpect was suggested by experts on the python forum. Unfortuntely they seem unable to correct my trivial example of opening a terminal and sending 'gdb' to it. Therefore any working snippets would be 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.