pyocd / pyOCD

Open source Python library for programming and debugging Arm Cortex-M microcontrollers
https://pyocd.io
Apache License 2.0
1.13k stars 484 forks source link

AttributeError 'Logger' object has no attribute 'warining' #1058

Closed r8d8 closed 3 years ago

r8d8 commented 3 years ago

https://github.com/pyocd/pyOCD/blob/91b68e4aa6ef78aa1b547b51314621ad6bd59ece/pyocd/gdbserver/context_facade.py#L153

flit commented 3 years ago

Ouch, that's embarrassing!

flit commented 3 years ago

How did you encounter this bug? The warning should only be printed when, as it says, gdb attempted to set the value of an invalid CPU register.

r8d8 commented 3 years ago

I was connecting to microbit (version 2), and error appeared during ‘load’ command

On Fri, 22 Jan 2021 at 22:14, Chris Reed notifications@github.com wrote:

Closed #1058 https://github.com/pyocd/pyOCD/issues/1058 via #1059 https://github.com/pyocd/pyOCD/pull/1059.

— You are receiving this because you authored the thread.

Reply to this email directly, view it on GitHub https://github.com/pyocd/pyOCD/issues/1058#event-4240229799, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5FWOTJIEXWA5SXALHQTHLS3HMBDANCNFSM4WOGZYJQ .

flit commented 3 years ago

Ok, thanks!

What version of gdb? (gdb --version)