This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Constify some commands in i386-tdep.c


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c4a3e68e33b78c68d63c35bbed01782ff9eff4d1

commit c4a3e68e33b78c68d63c35bbed01782ff9eff4d1
Author: Tom Tromey <tom@tromey.com>
Date:   Tue Sep 12 21:17:26 2017 -0600

    Constify some commands in i386-tdep.c
    
    gdb/ChangeLog
    2017-09-27  Tom Tromey  <tom@tromey.com>
    
    	* i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
    	Constify.

Diff:
---
 gdb/ChangeLog   | 5 +++++
 gdb/i386-tdep.c | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b67c617..b760480 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
+	* i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
+	Constify.
+
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
 	* symfile-mem.c (add_symbol_file_from_memory_command): Constify.
 
 2017-09-27  Tom Tromey  <tom@tromey.com>
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index eefa03a..f26d624 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -8874,7 +8874,7 @@ i386_mpx_print_bounds (const CORE_ADDR bt_entry[4])
 /* Implement the command "show mpx bound".  */
 
 static void
-i386_mpx_info_bounds (char *args, int from_tty)
+i386_mpx_info_bounds (const char *args, int from_tty)
 {
   CORE_ADDR bd_base = 0;
   CORE_ADDR addr;
@@ -8916,7 +8916,7 @@ i386_mpx_info_bounds (char *args, int from_tty)
 /* Implement the command "set mpx bound".  */
 
 static void
-i386_mpx_set_bounds (char *args, int from_tty)
+i386_mpx_set_bounds (const char *args, int from_tty)
 {
   CORE_ADDR bd_base = 0;
   CORE_ADDR addr, lower, upper;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]