From 21ea9eece76627d5f71f6a755ea3fc7b2916db72 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 25 Nov 2013 07:32:35 -0700 Subject: make symtab::filename const This makes symtab::filename const and removes a newly unnecessary cast. 2013-12-06 Tom Tromey * symfile.c (allocate_symtab): Remove cast. * symtab.h (struct symtab) : Now const. --- gdb/symtab.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/symtab.h') diff --git a/gdb/symtab.h b/gdb/symtab.h index 7cc6667..821479a 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -875,7 +875,7 @@ struct symtab /* Name of this source file. This pointer is never NULL. */ - char *filename; + const char *filename; /* Directory in which it was compiled, or NULL if we don't know. */ -- cgit v1.1