aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.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/top.c
parent2de7820f275d96335a4749e2239aace063e1087d (diff)
downloadfsf-binutils-gdb-05159abe9613acc8732e97494b327066bbd5e356.zip
fsf-binutils-gdb-05159abe9613acc8732e97494b327066bbd5e356.tar.gz
fsf-binutils-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/top.c')
-rw-r--r--gdb/top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 90e8f1e..dc2104c 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -298,7 +298,7 @@ quit_cover (void *s)
/* NOTE 1999-04-29: This variable will be static again, once we modify
gdb to use the event loop as the default command loop and we merge
event-top.c into this file, top.c */
-/* static */ char *source_file_name;
+/* static */ const char *source_file_name;
/* Clean up on error during a "source" command (or execution of a
user-defined command). */