aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-10-16 18:46:43 -0600
committerTom Tromey <tom@tromey.com>2019-10-16 20:44:21 -0600
commitbefcd486f467deb3a6a7576dc03bd40db3939ab6 (patch)
tree4c87daffc3b8b1f225c0cf37c2440155edcf99f6 /gdb/objfiles.h
parent611fa2f46c4ea0ca2f4153b6cf7ec31b8486eb28 (diff)
downloadgdb-befcd486f467deb3a6a7576dc03bd40db3939ab6.zip
gdb-befcd486f467deb3a6a7576dc03bd40db3939ab6.tar.gz
gdb-befcd486f467deb3a6a7576dc03bd40db3939ab6.tar.bz2
Constify objfile::original_name
I noticed that objfile::original_name could be a "const char *" rather than a plain "char *". This patch implements this change. Tested by rebuilding. gdb/ChangeLog 2019-10-16 Tom Tromey <tom@tromey.com> * objfiles.h (struct objfile) <original_name>: Now const.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r--gdb/objfiles.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index dbd06c0..2d921208 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -483,7 +483,7 @@ struct objfile
This pointer is never NULL. This does not have to be freed; it is
guaranteed to have a lifetime at least as long as the objfile. */
- char *original_name = nullptr;
+ const char *original_name = nullptr;
CORE_ADDR addr_low = 0;