pyOCD icon indicating copy to clipboard operation
pyOCD copied to clipboard

Commander keep printing last output when I just press enter in prompt

Open Fede85 opened this issue 6 years ago • 1 comments

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> 

Fede85 avatar Jul 08 '20 14:07 Fede85

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.

flit avatar Jul 08 '20 14:07 flit