From 8e96694e31aedc28a4e2a00b28099158a8bd4a5a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 25 Nov 2013 07:40:05 -0700 Subject: make symtab::dirname const This makes symtab::dirname const and updates one spot to avoid an intermediate constless result. 2013-12-06 Tom Tromey * buildsym.c (end_symtab_from_static_block): Use obstack_copy0. * 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 821479a..3be85ca 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -879,7 +879,7 @@ struct symtab /* Directory in which it was compiled, or NULL if we don't know. */ - char *dirname; + const char *dirname; /* Total number of lines found in source file. */ -- cgit v1.1