From 55e2734915325e1aa5d8484a96c74603b1963ec0 Mon Sep 17 00:00:00 2001 From: cagney Date: Thu, 27 Jan 2005 20:34:42 +0000 Subject: [PATCH] 2005-01-27 Andrew Cagney * cli/cli-dump.h (fopen_with_cleanup): Make "filename" const. * cli/cli-dump.c (dump_binary_file, dump_bfd_file): Make string parameters const, change buf to a const bfd_byte. (fopen_with_cleanup, bfd_openw_with_cleanup): Make all string parameters const. --- gdb/ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7ccfa7155d..668c2adf68 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2005-01-27 Andrew Cagney + * cli/cli-dump.h (fopen_with_cleanup): Make "filename" const. + * cli/cli-dump.c (dump_binary_file, dump_bfd_file): Make string + parameters const, change buf to a const bfd_byte. + (fopen_with_cleanup, bfd_openw_with_cleanup): Make all string + parameters const. + * corefile.c (write_memory): Update, make a copy of the read-only buffer. * target.c (target_read_memory): Update. -- 2.11.0