Eli Zaretskii (eliz@gnu.org): > AFAICS, this change: > > 2009-01-28 Daniel Jacobowitz > Jerome Guitton > > * 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 * main.c (captured_main): Move gdbinit lookups after gdb_init.