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.
This commit is contained in:
Tom Tromey 2019-10-16 18:46:43 -06:00
parent 611fa2f46c
commit befcd486f4
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2019-10-16 Tom Tromey <tom@tromey.com>
* objfiles.h (struct objfile) <original_name>: Now const.
2019-10-16 Christian Biesinger <cbiesinger@google.com>
* gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to

View File

@ -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;