From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11339 invoked by alias); 3 Nov 2006 21:58:44 -0000 Received: (qmail 11326 invoked by uid 22791); 3 Nov 2006 21:58:44 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.185) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 03 Nov 2006 21:58:42 +0000 Received: by nf-out-0910.google.com with SMTP id o25so1995776nfa for ; Fri, 03 Nov 2006 13:58:40 -0800 (PST) Received: by 10.49.20.5 with SMTP id x5mr2034745nfi.1162591119453; Fri, 03 Nov 2006 13:58:39 -0800 (PST) Received: by 10.49.61.8 with HTTP; Fri, 3 Nov 2006 13:58:39 -0800 (PST) Message-ID: <366c6f340611031358i7ba844e2t3efd72bd233cc1fa@mail.gmail.com> Date: Fri, 03 Nov 2006 21:58:00 -0000 From: "Peng Yu" To: gdb@sourceware.org Subject: How to automatically execute some commands when gdb starts 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-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00013.txt.bz2 Hi, Every time I start gdb, I'll use command "b main". I don't want to type it every time. Is there anyway to set up gdb by default it execute that command every time gdb starts? Thanks, Peng