Browse Source

Fix gdb communication error (#82)

pull/85/head
Brian Campbell 9 years ago
committed by Andrew Waterman
parent
commit
7647707a60
  1. 2
      riscv/gdbserver.cc

2
riscv/gdbserver.cc

@ -325,7 +325,7 @@ void circular_buffer_t<T>::append(const T *src, unsigned int count)
count -= copy;
if (count > 0) {
assert(count < contiguous_empty_size());
memcpy(contiguous_empty(), src, count * sizeof(T));
memcpy(contiguous_empty(), src+copy, count * sizeof(T));
data_added(count);
}
}

Loading…
Cancel
Save