diff options
author | Tom Tromey <tromey@redhat.com> | 2013-11-25 07:40:05 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-12-06 12:13:37 -0700 |
commit | 8e96694e31aedc28a4e2a00b28099158a8bd4a5a (patch) | |
tree | 24513091efce83803d43f79eda257ada0b1d358d /gdb/symtab.h | |
parent | 21ea9eece76627d5f71f6a755ea3fc7b2916db72 (diff) | |
download | gdb-8e96694e31aedc28a4e2a00b28099158a8bd4a5a.zip gdb-8e96694e31aedc28a4e2a00b28099158a8bd4a5a.tar.gz gdb-8e96694e31aedc28a4e2a00b28099158a8bd4a5a.tar.bz2 |
make symtab::dirname const
This makes symtab::dirname const and updates one spot to avoid an
intermediate constless result.
2013-12-06 Tom Tromey <tromey@redhat.com>
* buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
* symtab.h (struct symtab) <dirname>: Now const.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ |