This is the mail archive of the gdb-patches@sources.redhat.com 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: GDBINIT_FILENAME macro in config/i386/xm-cygwin.h


On Thu, Feb 14, 2002 at 05:51:48PM +0100, Pierre Muller wrote:
>At 17:33 14/02/2002 , Christopher Faylor a ?crit:
>>On Thu, Feb 14, 2002 at 05:10:42PM +0100, Pierre Muller wrote:
>> >
>> >
>> >xm-cygwin.h seems to define again GDBINIT_FILENAME to "gdb.ini",
>> >thus gdb.ini is searched in home and current dir.
>> >
>> >But looking into logs, Chistopher removed this in version 1.5,
>> >as explained in the log, while Andrew reintroduced it,
>> >but without any mention in the log.
>> >
>> >Isn't that an error in the last commit of Andrew?
>>
>>I'm sure that it is.  I've reverted the reversion.
>>
>>Thanks for catching this.  I'm sure I would have been scratching my
>>head about this one for a while before I figured out what was going
>>on.
>Its simply because I didn't understand the meaning of the warning generated by the
>_iniitialize_check_for_gdb_ini file. It said that I should rename gdb.ini to .gdbinit,
>but when I did that, the file was not "sourced" anymore...

Heh.

>Now that its fixed again, I understand the comment.
>Just one notice:
>  this warning is only done for the $HOME/gdb.ini file,
>should it be also issued if a gdb.ini exists in the current directory?
>Because the GDBINIT_FILENAME is read first in $HOME dir
>and after in the starting dir of the GDB executable.

Yes, it should check for this, too.

I'll look into extending the current behavior.

cgf


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