diff options
author | Eli Zaretskii <eliz@gnu.org> | 2005-05-12 21:23:17 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2005-05-12 21:23:17 +0000 |
commit | eaae39195e3ebc6d1bd7d9d5750552184c32dc1f (patch) | |
tree | 7313fe0aa7ee49de3a376f5f7e7241e830ead407 /gdb/go32-nat.c | |
parent | e0ecbda10dcbd7c79487d31d70ca88658be05e30 (diff) | |
download | gdb-eaae39195e3ebc6d1bd7d9d5750552184c32dc1f.zip gdb-eaae39195e3ebc6d1bd7d9d5750552184c32dc1f.tar.gz gdb-eaae39195e3ebc6d1bd7d9d5750552184c32dc1f.tar.bz2 |
* Makefile.in (go32-nat.o): Add $(top_h) to prerequisites.
* go32-nat.c: Include top.h. Update copyright years.
(init_go32_ops): Override the default value of gdbinit[] with
"gdb.ini".
* cli/cli-cmds.c (init_cli_cmds): Use gdbinit[] instead of a
compile-time literal string GDBINIT_FILENAME.
* top.c (PATH_MAX): Define if not defined.
(gdbinit): Declare with a constant size PATH_MAX.
* config/i386/go32.mh (XM_FILE): Remove.
* config/i386/xm-go32.h: Remove file.
Diffstat (limited to 'gdb/go32-nat.c')
-rw-r--r-- | gdb/go32-nat.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c index 9758129..0556f57 100644 --- a/gdb/go32-nat.c +++ b/gdb/go32-nat.c @@ -1,5 +1,5 @@ /* Native debugging support for Intel x86 running DJGPP. - Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. + Copyright 1997, 1999, 2000, 2001, 2005 Free Software Foundation, Inc. Written by Robert Hoehne. This file is part of GDB. @@ -34,6 +34,7 @@ #include "value.h" #include "regcache.h" #include "gdb_string.h" +#include "top.h" #include <stdio.h> /* might be required for __DJGPP_MINOR__ */ #include <stdlib.h> @@ -894,6 +895,9 @@ init_go32_ops (void) /* We are always processing GCC-compiled programs. */ processing_gcc_compilation = 2; + + /* Override the default name of the GDB init file. */ + strcpy (gdbinit, "gdb.ini"); } unsigned short windows_major, windows_minor; |