From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20290 invoked by alias); 15 Aug 2012 17:35:04 -0000 Received: (qmail 20260 invoked by uid 22791); 15 Aug 2012 17:35:03 -0000 X-SWARE-Spam-Status: No, hits=-5.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-vb0-f41.google.com (HELO mail-vb0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Aug 2012 17:34:49 +0000 Received: by vbkv13 with SMTP id v13so1959337vbk.0 for ; Wed, 15 Aug 2012 10:34:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-system-of-record:x-gm-message-state; bh=JKgp2jUYVi117eunHruF4aEw0cEP6Sp/XvCujd0dxlo=; b=Trm/+YZSU9+KrQj9YYNfQY53wcqc4gPE6fAxBt+hJJklPSAa+MKoai5KwpShY7QzF4 477ctvb/8gzbCRznWvzNEPQX1rbDWRcVEtrrDZ/Hg+IyyMddc6l4jb6GWGe7aoFUCnjd 6oQH3/0uRUDQnQlyoKV29JVoVcLy/43rod2ygZMS4PD8iz04kYPpDmQRiwxCDySCvTeO Q4emPXn2BWygX9TU+iDyRwBOT4IwP0hq2o3lU3eu7F1sSBvG34aiHhpShXyh//8kuzSl ERZYIIxw1v5vuHCB97cKuSj5eRrUr8cIrRK4W7quwOdebPzVpqOXxNr3MoQoUTVhBRi/ bI/A== Received: by 10.52.94.179 with SMTP id dd19mr5179266vdb.123.1345052088324; Wed, 15 Aug 2012 10:34:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.94.179 with SMTP id dd19mr5179258vdb.123.1345052088131; Wed, 15 Aug 2012 10:34:48 -0700 (PDT) Received: by 10.52.117.3 with HTTP; Wed, 15 Aug 2012 10:34:48 -0700 (PDT) In-Reply-To: <83vcgpddpa.fsf@gnu.org> References: <83vcgpddpa.fsf@gnu.org> Date: Wed, 15 Aug 2012 17:35:00 -0000 Message-ID: Subject: Re: .gdbini file From: Doug Evans To: Eli Zaretskii Cc: Smith John , gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-System-Of-Record: true X-Gm-Message-State: ALoCoQkYVDUjDY3zN/A6pCRt0lIwLN5+E1TFVsY94ELpP3FhbDqFNYeFEJOfXXIYTrpFspTUdXuXu4S+2ZDIUxs6HxKQWP1/ERtfvbdsSSk7b99cujJr6wEpu2uACTG0JnMaRAo29XN9ut2vSgE6urYlyeKwkDbBmEEfoLUG652zB+o+621hlp8EvQtV6sX5XWW5kMbIjf7G 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: 2012-08/txt/msg00054.txt.bz2 On Sat, Aug 11, 2012 at 1:40 AM, Eli Zaretskii wrote: >> Date: Sat, 11 Aug 2012 15:30:23 +0800 >> From: Smith John >> >> I am debugging gdb with itself , how can I use the >> gdbinit file in the gdb source directory? > > Either type the "source /path/to/.gdbinit" command at the GDB prompt, > or start GDB from the directory of that file, so that it is loaded > automatically. > >> or what role does this file play on ? > > It defines several defaults and commands useful for debugging GDB. > It's a text file, so you can read it and see what it does. Remember that .gdbinit is gone, in favor of gdb-gdb.gdb [there's a reason it's spelled that way :-)] And there should be no need to manually load it, that should happen automatically (except when debugging a newer gdb with an older gdb). For reference sake, - gdb-gdb.gdb is installed in the build tree from gdb-gdb.gdb.in in the source tree - there is also gdb-gdb.py, which provides additional Python based support for debugging gdb with gdb.