From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30432 invoked by alias); 25 Jul 2006 06:45:58 -0000 Received: (qmail 30421 invoked by uid 22791); 25 Jul 2006 06:45:58 -0000 X-Spam-Check-By: sourceware.org Received: from 203.197.88.2.ILL-PUNE.static.vsnl.net.in (HELO marvin.codito.net) (203.197.88.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 25 Jul 2006 06:45:54 +0000 Received: from [192.168.100.141] ([220.225.32.98]) (authenticated bits=0) by marvin.codito.net (8.13.5/8.13.5/Debian-3) with ESMTP id k6P6nkXI031019 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 25 Jul 2006 12:19:48 +0530 Message-ID: <44C5BC9A.2090205@codito.com> Date: Tue, 25 Jul 2006 08:24:00 -0000 From: Kunal Parmar Reply-To: kunal.parmar@codito.com User-Agent: Thunderbird 1.5.0.4 (X11/20060615) MIME-Version: 1.0 To: Ashwin Pathmudi CC: Riley , gdb@sources.redhat.com Subject: Re: gdb - persistent "set" settings References: <5459833.post@talk.nabble.com> <87vepo2aok.fsf@mail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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-07/txt/msg00169.txt.bz2 Hi, If you use "quit" command to exit gdb, then you could add a hook to that command. You can also define your command to exit gdb. See here - http://sources.redhat.com/gdb/current/onlinedocs/gdb_21.html#SEC226 Ashwin Pathmudi wrote: > Hi, > On 7/24/06, Riley wrote: >> >> >> "Ashwin Pathmudi" writes: >> >> > Hi, >> > Put in all the commands you need gdb to have executed in a >> > '.gdbinit' file in that particular directory. gdb executes the >> commands >> > in this file before showing you the prompt. >> >> Thanks. Is it possible to default to gdb doing this for me when I exit >> gdb? I see ddd does this for you. > I dont think gdb can do that. > > cheers, > Ashwin Pathmudi. Cheers, Kunal Parmar -- Kunal Parmar Software Developer, Codito Technologies Pvt. Ltd. (www.codito.com) Office: +91 20 26051367 ext. 133 Mobile: +91 98230 28171