projects
/
sx
/
simavr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
regExp
home
|
summary
|
tags
|
heads
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
raw
|
patch
| inline |
side by side
(parent:
84174b5
)
Commit
d226e2a99f2f3deb655a2e32d36878f9504c68aa
author
nnayo
<yann_gouy@yahoo.fr>
Mon, 3 Mar 2014 13:55:19 +0000
(14:55 +0100)
committer
nnayo
<yann_gouy@yahoo.fr>
Mon, 3 Mar 2014 13:55:19 +0000
(14:55 +0100)
simavr/sim/sim_gdb.c
patch
|
blob
|
history
|
download
diff --git
a/simavr/sim/sim_gdb.c
b/simavr/sim/sim_gdb.c
index 95ca3b36c34ec163398abf11550bdf18f623aa75..80be31af02ec1afa13fee844c78af279bdcf1aa0 100644
(file)
--- a/
simavr/sim/sim_gdb.c
+++ b/
simavr/sim/sim_gdb.c
@@
-127,8
+127,8
@@
gdb_watch_add_or_update(
w->len++;
- /* Make space for new element. */
- for (int j =
i + 1; j < w->len; j++
) {
+ /* Make space for new element
, moving old ones from the end
. */
+ for (int j =
w->len; j > i; j--
) {
w->points[j] = w->points[j - 1];
}