From 2863a91d356ee1a36fd3d0c8f9d6fdd18d0fe6c9 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 18 Oct 2012 20:14:44 +0000 Subject: * tracepoint.c (print_one_static_tracepoint_marker): Constify. * symtab.c (iterate_over_some_symtabs): Constify. * source.h (symtab_to_fullname): Return 'const char *'. * source.c (symtab_to_fullname): Return 'const char *'. * python/py-symtab.c (stpy_fullname): Constify. * cli/cli-cmds.c (edit_command): Constify. * breakpoint.c (print_breakpoint_location) (update_static_tracepoint): Constify. --- gdb/cli/cli-cmds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/cli') diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index dcf53694f40..b65262e4189 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -762,7 +762,8 @@ edit_command (char *arg, int from_tty) struct symbol *sym; char *arg1; char *editor; - char *p, *fn; + char *p; + const char *fn; /* Pull in the current default source line if necessary. */ if (arg == 0) -- cgit v1.2.1