Make "gnutarget" const
I noticed that gnutarget was not "const". Since writing through this pointer would probably be a bug, I think it ought to be. This patch makes the change. gdb/ChangeLog 2020-03-04 Tom Tromey <tom@tromey.com> * jit.c (bfd_open_from_target_memory): Make "target" const. * corefile.c (gnutarget): Now const. * gdbcore.h (gnutarget): Now const.
This commit is contained in:
parent
baf09cba8f
commit
4e7625fde2
4 changed files with 10 additions and 3 deletions
|
@ -164,7 +164,7 @@ extern void validate_exec_file (int from_tty);
|
|||
|
||||
/* The current default bfd target. */
|
||||
|
||||
extern char *gnutarget;
|
||||
extern const char *gnutarget;
|
||||
|
||||
extern void set_gnutarget (const char *);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue