adamgreen / mri

MRI - Monitor for Remote Inspection. The gdb compatible debug monitor for Cortex-M devices.
Apache License 2.0
155 stars 57 forks source link

Source level single stepping over line of code which crashes can hang MRI #35

Closed adamgreen closed 2 years ago

adamgreen commented 2 years ago

@icecream95 reported this issue in his PR #32.

I was able to reproduce the hang in MRI by attempting to single step at the source level (using step and not stepi) over the following instruction:

    *(volatile uint32_t*)0xFFFFFFFF;

There is a bug in MRI where handling ranged single stepping is taking precedence over exception handling. I will start working on a fix for it soon.