From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15577 invoked by alias); 10 Mar 2005 10:52:47 -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 15437 invoked from network); 10 Mar 2005 10:52:37 -0000 Received: from unknown (HELO nevismail01.pune.nevisnetworks.com) (203.124.166.180) by sourceware.org with SMTP; 10 Mar 2005 10:52:37 -0000 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Is it possible to save breakpoints to a file? Date: Thu, 10 Mar 2005 10:52:00 -0000 Message-ID: <7F17177AC9AC2F4CB4A1A33C936D038D07240F@nevismail01.pune.nevisnetworks.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Atul Talesara" To: "Hareesh Nagarajan" , "GDB" X-SW-Source: 2005-03/txt/msg00097.txt.bz2 > Is it possible to save all breakpoints that one > sets to a file, so that=20 > we can reload the breakpoints set during the next > debug run? Well, though not exactly the same ... this might solve your problem. You can have a plain text file that can list all the breakpoints you want to put. Ex: $ cat breakpoints break code_file_01.c : 515 break code_file_02.c : 5 break code_file_03.c : 201 And then you can source this file to gdb as: (gdb) source breakpoints In fact you can have *any* command you wish in the sourced file. If you put all these in '.gdbinit' file then gdb will automatically source this on start up! Hope this addresses your need. Regards, Atul http://the-shaolin.blogspot.com/ ----------------------------------------------------------=20 You can tell more about a person by what he says about others than you can by what others say about him. ----------------------------------------------------------=20