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:
parent
611fa2f46c
commit
befcd486f4
|
@ -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>
|
2019-10-16 Christian Biesinger <cbiesinger@google.com>
|
||||||
|
|
||||||
* gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
|
* gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
|
||||||
|
|
|
@ -483,7 +483,7 @@ struct objfile
|
||||||
This pointer is never NULL. This does not have to be freed; it is
|
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. */
|
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;
|
CORE_ADDR addr_low = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue