Unable to remotely debug via gdb on OpenWrt

Hello,

In this documentation page, it explains how to remotely debug a process on your router. I went into the menuconfig to add gdbserver and it wasn't there, so I just installed it from opkg. However, when I run the gdb client and connect to the host on the router, I get this error:

mips-tdep.c:765: internal-error: bad register size

Has anyone else experienced this and has a workaround, or some way to fix it? My router architecture is mipsel and has an armv7 CPU, and my gdb client is running on a 64 bit Ubuntu machine. Thanks for any help.

1 Like