Rockbox Development > Starting Development and Compiling

Debugging Rockbox Plugins

(1/1)

amr:
DDD works well with me when opening rockboxui binary file and loading firmware source code files; but when trying to open a .rock file to debug a plugin, I get No Source error message: "/build/buildd/glibc-2.9/build-tree/i386-libc/csu/crti.S: No such file or directory"

Maybe this is because .rock file aren't standalone binaries, but how to make plugins source files appear for loading while opening rockboxui ?

Any ideas? Thanks.

funman:
On the simulator, .rock are just a copy of the .elf file

To debug a plugin you can do:


--- Code: ---% gdb ./rockboxui
(gdb) b plugin_start
Function "plugin_start" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 1 (plugin_start) pending.
(gdb) run

--- End code ---

Navigate in the sim, run any plugin, gdb interrupts the simulator and give you the prompt.

amr:
Thanks funman, I've inserted a breakpoint at plugin_start in DDD and I could trace the plguin code step by step now.. and visually ..

Navigation

[0] Message Index

Go to full version