avrdudes / avarice

AVaRICE is a program for interfacing the Atmel JTAG ICE to GDB to allow users to debug their embedded AVR target.
GNU General Public License v2.0
38 stars 12 forks source link

clear offset when crossing flash pages #89

Open tlyu opened 2 years ago

tlyu commented 2 years ago

When doing a flash read that crosses pages, clear the offset once the first page is read. Otherwise, GDB will receive incorrect bytes, and the read can overrun the page cache buffer.

Fixes #106.