From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cp165172.hpdns.net (cp165172.hpdns.net [91.238.165.172]) by sourceware.org (Postfix) with ESMTPS id 80E4E385740E for ; Mon, 9 Aug 2021 14:31:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 80E4E385740E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dyxyl.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dyxyl.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dyxyl.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=TJa+i6yYI1TcpvQNqOaVp1x7FuSpvoDi9TahHTONuYQ=; b=jR9HMzXyW7BUW1pz4MYz2A1WMl XAs3BvY6So0bsWMFUzVy2jS3xbkATSq+X19i/ckxb+gcmZ0Fnt7dkGD7zPwbJHZZ2K3MU38uNBKY5 ybvrRYLeT4dR/fmws5nX5u/HHCC/G+eb6VoL1/Btjo+7gW7jQ/HzhgEbkjxzE3rG3tTA=; Received: from cpc92880-cmbg19-2-0-cust615.5-4.cable.virginm.net ([82.27.106.104]:35620 helo=localhost.localdomain) by cp165172.hpdns.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mD6JP-00CEO0-43; Mon, 09 Aug 2021 15:31:31 +0100 Received: by localhost.localdomain (Postfix, from userid 597) id 086E760165; Mon, 9 Aug 2021 15:31:29 +0100 (BST) From: Martin Simmons To: Mahmood Naderan Cc: gdb@sourceware.org Subject: Re: How to check if .gdbinit macros have been loaded? In-Reply-To: <526939713.188425.1628429312671@mail.yahoo.com> (message from Mahmood Naderan via Gdb on Sun, 8 Aug 2021 13:28:32 +0000 (UTC)) References: <526939713.188425.1628429312671.ref@mail.yahoo.com> <526939713.188425.1628429312671@mail.yahoo.com> Date: Mon, 09 Aug 2021 15:31:29 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-cPanel-MailScanner-Information: Please contact the ISP for more information X-cPanel-MailScanner-ID: 1mD6JP-00CEO0-43 X-cPanel-MailScanner: Found to be clean X-cPanel-MailScanner-SpamCheck: X-cPanel-MailScanner-From: qqxnjvamvxwx@dyxyl.com X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HK_RANDOM_ENVFROM, HK_RANDOM_FROM, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp165172.hpdns.net X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - dyxyl.com X-Get-Message-Sender-Via: cp165172.hpdns.net: authenticated_id: dyxyl/from_h X-Authenticated-Sender: cp165172.hpdns.net: qqxnjvamvxwx@dyxyl.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2021 14:31:36 -0000 >>>>> On Sun, 8 Aug 2021 13:28:32 +0000 (UTC), Mahmood Naderan via Gdb said: > > Hi > > I use a .gdbinit [1] file which is supposed to print some debug information when the program is being run. > When I run GDB, the first printf is written on the screen. So, that means the .gdbinit file has been loaded. > However, I don't see the rest of the information that must be printed on the screen. There are a lot of printf for this purpose. The other printfs are inside define ... end, so you will only see them when the named command is used. > How can I be sure that the rest of the macros are called? Maybe they hit errors and I am not able to see those errors. What makes you think these commands (macros) will be called automatically? I think you have to call them yourself from the gdb command line. BTW, the "show user" command will tell you if a particular user defined command exists. __Martin