diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/i386-nat.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1028f85..c6de90e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2014-06-18 Gary Benson <gbenson@redhat.com> + * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>: + Make const. + +2014-06-18 Gary Benson <gbenson@redhat.com> + * i386-nat.c: Comment changes. 2014-06-18 Gary Benson <gbenson@redhat.com> diff --git a/gdb/i386-nat.c b/gdb/i386-nat.c index a7742f2..23efb33 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. */ |