From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic305-2.consmr.mail.bf2.yahoo.com (sonic305-2.consmr.mail.bf2.yahoo.com [74.6.133.41]) by sourceware.org (Postfix) with ESMTPS id 61F563858025 for ; Sun, 8 Aug 2021 13:28:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 61F563858025 X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1628429313; bh=wxLF9RLegI0J4892EgRIpilV9tYnSBNZNEysSczjFJz=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=QddFwalzc5C7mwOEGfoBilxTBYudFamy2y8GmnJZlui7HMfEItHW0d+3gik3n1sCjfEpoHh5mC0nRsI2z57Lhjwp/kQyySgiKu90ia1HcSVtCSsNnCsPzsyBMnfsjIvVcNqWGf+fTBzOqrVW9eBddc77NRHR/ICkbwkNTjU67yFObS5JxCYjuV+XCl8nv/rajCyCzsiXFkRzq9FiRvT0z0LduEAbr6UtRq9LSLwIIaXB/lk1fio7u5/XSqxGwec9Ju6sU/iQunKMVcF+tdobEaTu3VnSs83+TczeMfSYUHmjV56s22zcYAzw564tXTP3so3Mz+JQbT5lF52hI5Rg/Q== X-YMail-OSG: pWYJP5EVM1kdDCy5gdGvZOq8Cbzd3H48i9hOjLuPw8UbOjtVDDM7R07lx0.w_x_ ppyb2qsfd1cIDZoDm1e3m.ptrPrRrJregRWGAPA6den9nxohQd5hbnWzKvGkiwiGbiESONclsOOE WyWSUYl1TZAmCJXZv3jwF2_ZMUJ_caUT4Hft6atG459MnXfVMr0NItS75JjJkdice2tXq5Lo9wNQ vFBxXCWH774oulu2TlOBrBZOjPSdKi3pd1I1zsPENVUNMIyGTrXm3nTL7OpEyHItBQ4FZ2.m6ds9 VyFty8VTW4U2S44DXjhGOYOEnz3iIVSM9a_Y1gCkrsr2b8Kyl2wZztqWapDeJSQZjbUgzFPt38Ld tdtgfcbZXhZi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ze38N_Y.WGIqm.Hoz X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.bf2.yahoo.com with HTTP; Sun, 8 Aug 2021 13:28:33 +0000 Date: Sun, 8 Aug 2021 13:28:32 +0000 (UTC) From: Mahmood Naderan Reply-To: Mahmood Naderan To: "gdb@sourceware.org" Message-ID: <526939713.188425.1628429312671@mail.yahoo.com> Subject: How to check if .gdbinit macros have been loaded? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <526939713.188425.1628429312671.ref@mail.yahoo.com> X-Mailer: WebService/1.1.18796 YMailNorrin X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Level: * 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: Sun, 08 Aug 2021 13:28:35 -0000 Hi I use a .gdbinit [1] file which is supposed to print some debug information= when the program is being run.=20 When I run GDB, the first printf is written on the screen. So, that means t= he .gdbinit file has been loaded. However, I don't see the rest of the information that must be printed on th= e screen. There are a lot of printf for this purpose. How can I be sure that the rest of the macros are called? Maybe they hit er= rors and I am not able to see those errors. $ gdb ~/accel-sim-framework/gpu-simulator/bin/debug/accel-sim.out GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: =C2=A0=C2=A0=C2=A0 . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/mnaderan/accel-sim-framework/gpu-simulator/bin/d= ebug/accel-sim.out... =C2=A0 ** loading GPGPU-Sim debugging macros... ** (gdb) run -config ./gpgpusim.config -trace ./traces/kernelslist.g Starting program: /home/mnaderan/accel-sim-framework/gpu-simulator/bin/debu= g/accel-sim.out -config ./gpgpusim.config -trace ./traces/kernelslist.g warning: the debug information found in "/lib64/ld-2.31.so" does not match = "/lib64/ld-linux-x86-64.so.2" (CRC mismatch). [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Accel-Sim [build accelsim-commit-16c3068431c7bf46d425aac134947ceb3e6a8f42_m= odified_11.0] =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 *** GPGPU-Sim Simulator Version = 4.1.0=C2=A0 [build gpgpu-sim_git-commit-6ad461a95ac71e0597274c4f750ce03bb3a= 6871e_modified_3.0] *** As you can see the "debugging macro" message shows that the .gdbinit file h= as been loaded. Any idea about that? [1] https://github.com/gpgpu-sim/gpgpu-sim_distribution/blob/master/.gdbini= t Regards, Mahmood