This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: .gdbini file


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. :-)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]