How to check if .gdbinit macros have been loaded?
Mahmood Naderan via Gdb <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
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. 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. $ 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 <http://gnu.org/licenses/gpl.html> 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: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. 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/debug/accel-sim.out... ** loading GPGPU-Sim debugging macros... ** (gdb) run -config ./gpgpusim.config -trace ./traces/kernelslist.g Starting program: /home/mnaderan/accel-sim-framework/gpu-simulator/bin/debug/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_modified_11.0] *** GPGPU-Sim Simulator Version 4.1.0 [build gpgpu-sim_git-commit-6ad461a95ac71e0597274c4f750ce03bb3a6871e_modified_3.0] *** As you can see the "debugging macro" message shows that the .gdbinit file has been loaded. Any idea about that? [1] https://github.com/gpgpu-sim/gpgpu-sim_distribution/blob/master/.gdbinit Regards, Mahmood