From 4e7625fde223fd0c98f09f41fe924e7317a82e1a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 4 Mar 2020 16:24:08 -0700 Subject: 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 * jit.c (bfd_open_from_target_memory): Make "target" const. * corefile.c (gnutarget): Now const. * gdbcore.h (gnutarget): Now const. --- gdb/gdbcore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/gdbcore.h') diff --git a/gdb/gdbcore.h b/gdb/gdbcore.h index 9d0f62b..7fef4d8 100644 --- a/gdb/gdbcore.h +++ b/gdb/gdbcore.h @@ -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 *); -- cgit v1.1