From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29897 invoked by alias); 19 May 2007 21:05:04 -0000 Received: (qmail 29851 invoked by uid 22791); 19 May 2007 21:05:03 -0000 X-Spam-Check-By: sourceware.org Received: from py-out-1112.google.com (HELO py-out-1112.google.com) (64.233.166.176) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 19 May 2007 21:05:01 +0000 Received: by py-out-1112.google.com with SMTP id p76so1517738pyb for ; Sat, 19 May 2007 14:04:59 -0700 (PDT) Received: by 10.35.129.19 with SMTP id g19mr5466635pyn.1179608699355; Sat, 19 May 2007 14:04:59 -0700 (PDT) Received: by 10.35.33.15 with HTTP; Sat, 19 May 2007 14:04:59 -0700 (PDT) Message-ID: <568e62a40705191404s144e7ccduc0ead413f506b123@mail.gmail.com> Date: Sat, 19 May 2007 21:05:00 -0000 From: "ying lcs" To: gdb@sourceware.org Subject: How to execute a file of gdb commands from gdb prompt? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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-05/txt/msg00091.txt.bz2 Hi, I can exeucte a file of gdb commands to start gdb like this: gdb ./MyServer -x gdb_script But how can i start it at a gdb prompt? $ gdb ./MyServer (gdb) << how to run gdb_script here?? Thank you.