This is the mail archive of the gdb-patches@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: Setting up GDB init files broken in DJGPP


Eli Zaretskii (eliz@gnu.org):

> AFAICS, this change:
> 
>     2009-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
> 		Jerome Guitton  <guitton@adacore.com>
> 
> 	    * configure, config.in: Regenerated.
> 	    * configure.ac: Add --with-system-gdbinit.
> 	    * main.c (get_init_files): New.
> 	    (captured_main): Use get_init_files.  Load system gdbinit before
> 	    $HOME/.gdbinit.
> 	    (print_gdb_help): Print location of init files.
> 
> broke the DJGPP port, in that it now looks for ~/.gdbinit rather than
> ~/gdb.ini.  (The former is an invalid file name on DOS filesystems.)

Sorry about that. I confirm that the fix that you suggest is OK:
moving get_init_files before gdb_init was obviously an error. I've
tested the patch in attachment, it works fine and the testsuite showed
no regression on x86-linux. Can you confirm that it fixes the problem
you are seeing?

2009-04-17  Jerome Guitton  <guitton@adacore.com>

	* main.c (captured_main): Move gdbinit lookups after gdb_init.

Attachment: main.c.diff
Description: Text document


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