From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32453 invoked by alias); 19 May 2007 23:43:39 -0000 Received: (qmail 32443 invoked by uid 22791); 19 May 2007 23:43:38 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 19 May 2007 23:43:35 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id DD7B348CBCB; Sat, 19 May 2007 19:43:33 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10071-01; Sat, 19 May 2007 19:43:33 -0400 (EDT) Received: from joel.gnat.com (unknown [70.71.0.212]) by nile.gnat.com (Postfix) with ESMTP id 723E648CBB8; Sat, 19 May 2007 19:43:33 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id A3253E7B4F; Sat, 19 May 2007 16:44:08 -0700 (PDT) Date: Sat, 19 May 2007 23:43:00 -0000 From: Joel Brobecker To: ying lcs Cc: gdb@sourceware.org Subject: Re: How to execute a file of gdb commands from gdb prompt? Message-ID: <20070519234408.GV3565@adacore.com> References: <568e62a40705191404s144e7ccduc0ead413f506b123@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <568e62a40705191404s144e7ccduc0ead413f506b123@mail.gmail.com> User-Agent: Mutt/1.4.2.2i 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-05/txt/msg00093.txt.bz2 > But how can i start it at a gdb prompt? > $ gdb ./MyServer > (gdb) << how to run gdb_script here?? Use the "source" luke, the "source" will be with you, always. http://www.sourceware.org/gdb/current/onlinedocs/gdb_21.html#IDX1185 -- Joel