From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26409 invoked by alias); 28 Aug 2007 21:03:30 -0000 Received: (qmail 26187 invoked by uid 22791); 28 Aug 2007 21:03:29 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 28 Aug 2007 21:03:21 +0000 Received: (qmail 9163 invoked from network); 28 Aug 2007 21:03:19 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 28 Aug 2007 21:03:19 -0000 To: Sheng-Liang Song Cc: Eli Zaretskii , gdb@sourceware.org, jan.kratochvil@redhat.com, koling@kchang.net Subject: Re: reference environment variables from gdb scripts (gdb and unix pipe) References: <12302351.post@talk.nabble.com> <20070824085740.GA11291@host0.dyn.jankratochvil.net> <46CF0945.8090901@baymicrosystems.com> <46CF22CA.6090708@baymicrosystems.com> <46D31638.5030200@baymicrosystems.com> From: Jim Blandy Date: Tue, 28 Aug 2007 21:03:00 -0000 In-Reply-To: <46D31638.5030200@baymicrosystems.com> (Sheng-Liang Song's message of "Mon, 27 Aug 2007 11:21:44 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-08/txt/msg00243.txt.bz2 Sheng-Liang Song writes: > gdb has "shell" command to switch to a unix shell. > After switch to a unix shell, can I call gdb functions/commands? No; you need to exit the shell before you can give more commands to GDB. > Does gdb supports "pipe" command? Is there a plan to add a "unix pipe" > command to gdb debug prompt? No; we don't have any plans to do so. We're currently planning to add Python as a scripting language to GDB. If that were to happen, the things you mention here could be done in a clean and general way.