.gdbini file

dje@google.com dje@google.com
Wed Aug 15 19:32:00 GMT 2012


Terekhov, Mikhail writes:
 > > -----Original Message-----
 > > From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On
 > > Behalf Of Doug Evans
 > > Sent: Wednesday, August 15, 2012 1:35 PM
 > ...
 > > 
 > > Remember that .gdbinit is gone, in favor of gdb-gdb.gdb [there's a
 > > reason it's spelled that way :-)]
 > 
 > And the reason is?

gdb-gdb.gdb
 ^   ^   ^
 ^   ^   ^---- It's a gdb script.
 ^   ^         If it were Python this would be .py.
 ^   ^
 ^   ^-------- "-gdb" is a gdb convention, it's the suffix added to a file
 ^             for auxiliary support.
 ^             E.g., gdb will auto-load libstdc++.so-gdb.py (version elided)
 ^             which contains the std c++ pretty-printers.
 ^
 ^------------ This init script is for the program named "gdb".
               If this were for readelf the script would be named
               readelf-gdb.gdb.

Kind of a funny name, but there is a convention behind it. :-)



More information about the Gdb mailing list