FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
137 views 3 comments
by anonymous
I'd like to debug on the device but i can't find any option to add the gdb package using "make menuconfig". Can anyone give me a hint on how to do it?

PS: I made a GitHub Action, which builds the SDK to a Docker image. Hopefully this helps anyone interested to jumpstart development without the hassle to use Ubuntu 18.04 and the various installation quicks. See: https://github.com/paresy/docker-teltonika-rutos

Thanks in advance!

1 Answer

0 votes
by anonymous
Hello,

Go to "Advanced configuration options" enable "Toolchain options" go back to the main menu. "Build gdb" should now be visible.

Regards,
Best answer
by anonymous
Just a followup - Will this create an ipk i can install on the router? I expected it to be a host-gdb and gdbserver combination like described here (https://openwrt.org/docs/guide-developer/gdb). But gdb on the device would be nice aswell if flash/ram permits.

Thanks!
by anonymous
This gdb is not for the target. If you want it on the target then copy a package/devel/gdb from a vanilla OpenWrt tree to the SDK tree (in package/devel) and enable it in menuconfig->Development. You can also enable gdbserver and both will end in a generated ipk.

You can also add strace valgrind ...
by anonymous
Thanks! Works very good!