stef / pyrsp

python implementation of the GDB Remote Serial Protocol
83 stars 20 forks source link

Add support for stubs that don't report features #18

Closed daniel-thompson closed 2 years ago

daniel-thompson commented 2 years ago

Currently when pyrsp connects to a stub that does not support feature reporting, such as kgdb from the Linux kernel, then we get a variety of crashes due to failure to read from self.feats. Fix this by providing an empty dictionary when needed and adopting a similar heuristic to gdb to track the maximum packet size.

Signed-off-by: Daniel Thompson daniel@redfelineninja.org.uk

stef commented 2 years ago

awesome! thanks.