From: Gary Benson Date: Tue, 10 Jun 2014 09:44:00 +0000 (+0100) Subject: Add a const X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b4550ef5e4223bf03a343dc8dd29285bf635e8b;p=binutils-gdb.git Add a const This commit adds a const that was in i386-low.c but not in i386-nat.c. gdb/ 2014-06-18 Gary Benson * i386-nat.c (i386_handle_nonaligned_watchpoint) : Make const. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1028f85fe16..c6de90eab80 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-06-18 Gary Benson + + * i386-nat.c (i386_handle_nonaligned_watchpoint) : + Make const. + 2014-06-18 Gary Benson * i386-nat.c: Comment changes. diff --git a/gdb/i386-nat.c b/gdb/i386-nat.c index a7742f2ea44..23efb3346d5 100644 --- a/gdb/i386-nat.c +++ b/gdb/i386-nat.c @@ -466,7 +466,7 @@ i386_handle_nonaligned_watchpoint (struct i386_debug_reg_state *state, int retval = 0; int max_wp_len = TARGET_HAS_DR_LEN_8 ? 8 : 4; - static int size_try_array[8][8] = + static const int size_try_array[8][8] = { {1, 1, 1, 1, 1, 1, 1, 1}, /* Trying size one. */ {2, 1, 2, 1, 2, 1, 2, 1}, /* Trying size two. */