From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32262 invoked by alias); 3 Jan 2005 07:00:26 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 32139 invoked from network); 3 Jan 2005 07:00:16 -0000 Received: from unknown (HELO mail.netspace.net.au) (203.10.110.72) by sourceware.org with SMTP; 3 Jan 2005 07:00:16 -0000 Received: from [192.168.1.11] (220-253-35-78.VIC.netspace.net.au [220.253.35.78]) by mail.netspace.net.au (Postfix) with ESMTP id 3E7CF6CD9C for ; Mon, 3 Jan 2005 18:00:15 +1100 (EST) Message-ID: <41D8EE7B.9090506@netspace.net.au> Date: Mon, 03 Jan 2005 07:00:00 -0000 From: Russell Shaw User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040820 Debian/1.7.2-4 MIME-Version: 1.0 Cc: gdb@sources.redhat.com Subject: Re: Shell commands References: <41D8DA3B.5040406@netspace.net.au> <01c4f160$Blat.v2.2.2$31b1b220@zahav.net.il> In-Reply-To: <01c4f160$Blat.v2.2.2$31b1b220@zahav.net.il> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-01/txt/msg00017.txt.bz2 Eli Zaretskii wrote: >>Date: Mon, 03 Jan 2005 16:38:03 +1100 >>From: Russell Shaw >> >>Does the gdb shell have a command to run a unix shell command? > > > Yes, and it's called `shell'. That is, "shell ls" will run `ls' in > the current directory. Just "shell" starts an inferior shell (you > need to explicitly exit the shell to return to GDB). I thought i typed "shell" in gdb and got on error response, but trying it again now showed it's there. I searched in all the help categories in gdb, but didn't find anything at the time. > If you tried to look for that in the GDB manual, but failed to find, > please describe how you tried to find it, as that might be some > problem with the manual indexing or something. Page 15 in the contents shows "shell commands", which was so obvious i thought it meant the general gdb shell instead of the unix shell. Just an unfortunate bunch of coincidences:(