aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-script.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-04-07 16:54:39 +0000
committerDoug Evans <dje@google.com>2010-04-07 16:54:39 +0000
commit05159abe9613acc8732e97494b327066bbd5e356 (patch)
treeecccf832664edcb6ae01df794c2ac41af6534064 /gdb/cli/cli-script.c
parent2de7820f275d96335a4749e2239aace063e1087d (diff)
downloadgdb-05159abe9613acc8732e97494b327066bbd5e356.zip
gdb-05159abe9613acc8732e97494b327066bbd5e356.tar.gz
gdb-05159abe9613acc8732e97494b327066bbd5e356.tar.bz2
* top.c (source_file_name): Make const char *.
* top.h (source_file_name): Update. * cli/cli-script.c (source_cleanup_lines_args): Make old_file const char *. (script_from_file): Change `file' arg to const char *. * cli/cli-script.h (script_from_file): Update.
Diffstat (limited to 'gdb/cli/cli-script.c')
-rw-r--r--gdb/cli/cli-script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
index 0b85bab..198966f 100644
--- a/gdb/cli/cli-script.c
+++ b/gdb/cli/cli-script.c
@@ -1557,7 +1557,7 @@ document_command (char *comname, int from_tty)
struct source_cleanup_lines_args
{
int old_line;
- char *old_file;
+ const char *old_file;
};
static void
@@ -1584,7 +1584,7 @@ wrapped_read_command_file (struct ui_out *uiout, void *data)
/* Used to implement source_command */
void
-script_from_file (FILE *stream, char *file)
+script_from_file (FILE *stream, const char *file)
{
struct cleanup *old_cleanups;
struct source_cleanup_lines_args old_lines;