projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e62758
)
Add a const
author
Gary Benson
<gbenson@redhat.com>
Tue, 10 Jun 2014 09:44:00 +0000
(10:44 +0100)
committer
Gary Benson
<gbenson@redhat.com>
Wed, 18 Jun 2014 09:15:15 +0000
(10:15 +0100)
This commit adds a const that was in i386-low.c but not in i386-nat.c.
gdb/
2014-06-18 Gary Benson <gbenson@redhat.com>
* i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
Make const.
gdb/ChangeLog
patch
|
blob
|
history
gdb/i386-nat.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index 1028f85fe1670df8e1e0d4a2c8aacadce057387b..c6de90eab80399777853e324efde30116a1de786 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-1,3
+1,8
@@
+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.
diff --git
a/gdb/i386-nat.c
b/gdb/i386-nat.c
index a7742f2ea447de2e7d615a79cf8665aa467cf246..23efb3346d5c17568c778ab85bdbe72e1b56ca4d 100644
(file)
--- 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. */