pyOCD
pyOCD copied to clipboard
Commander keep printing last output when I just press enter in prompt
I issued a command in the commander prompt that produced an output. After if I press enter in the prompt the previous output keep being printed before a new prompt line. Example:
pyocd> fill 0x0800e800 4 0x00000000
Filling 0x0800e800-0x0800e803 with pattern 0x00
Wrote 4 bytes @ 0x0800e800
pyocd>
Filling 0x0800e800-0x0800e803 with pattern 0x00
Wrote 4 bytes @ 0x0800e800
pyocd>
Filling 0x0800e800-0x0800e803 with pattern 0x00
Wrote 4 bytes @ 0x0800e800
pyocd>
Filling 0x0800e800-0x0800e803 with pattern 0x00
Wrote 4 bytes @ 0x0800e800
pyocd>
Filling 0x0800e800-0x0800e803 with pattern 0x00
Wrote 4 bytes @ 0x0800e800
pyocd>
That's the currently expected behaviour: when you press enter (i.e., execute an empty command), commander re-runs the last command.
What would you expect the behaviour to be?
The intent here was to a) match how gdb works, b) make it easy to watch a register or memory repeatedly. I was also planning to at some point add the auto-address-increment like gdb has when repeating the command.