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
39 stars 12 forks source link

Breakpoints - latest version (2.14svn20200906) not working with the Atmel-ICE and Arduino UNO R3 #94

Open kec-ebranchekoden opened 2 years ago

kec-ebranchekoden commented 2 years ago

Hi,

Breakpoints are not working as expected with my set-up (Atmel-ICE and Arduino UNO R3).

Avarice "hangs" when receiving a break event, because the event is ignored by avarice (debug message: ignoring break event).

The problem is byte 7 in the event buffer, because byte 7 is 0 when receiving a break event from the Atmel-ICE.

Break events will work as expected, if I change: https://github.com/avrdudes/avarice/blob/5a125cdd403cf8b7d758a363f75e4e492d15e5ee/src/jtag3run.cc#L203

To:

(!is_xmega && evtbuf[7] >= 0)

/Kenneth

maxgerhardt commented 1 year ago

This would be fixed by https://github.com/avrdudes/avarice/pull/88 right?