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/cli | |
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/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 3d25f1a..af11096 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -50,10 +50,6 @@ #include "tui/tui.h" /* For tui_active et.al. */ #endif -#ifndef GDBINIT_FILENAME -#define GDBINIT_FILENAME ".gdbinit" -#endif - /* Prototypes for local command functions */ static void complete_command (char *, int); @@ -1100,6 +1096,7 @@ void init_cli_cmds (void) { struct cmd_list_element *c; + char *source_help_text; /* Define the classes of commands. They will appear in the help list in the reverse of this order. */ @@ -1164,10 +1161,12 @@ End with a line of just \"end\".\n\ Use the \"document\" command to give documentation for the new command.\n\ Commands defined in this way may have up to ten arguments.")); - c = add_cmd ("source", class_support, source_command, _("\ + source_help_text = xstrprintf (_("\ Read commands from a file named FILE.\n\ -Note that the file \"" GDBINIT_FILENAME "\" is read automatically in this way\n\ -when gdb is started."), &cmdlist); +Note that the file \"%s\" is read automatically in this way\n\ +when gdb is started."), gdbinit); + c = add_cmd ("source", class_support, source_command, + source_help_text, &cmdlist); set_cmd_completer (c, filename_completer); add_com ("quit", class_support, quit_command, _("Exit gdb.")); |