Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Debugging Rockbox Plugins
« previous next »
  • Print
Pages: [1]

Author Topic: Debugging Rockbox Plugins  (Read 2077 times)

Offline amr

  • Member
  • *
  • Posts: 15
Debugging Rockbox Plugins
« on: April 07, 2010, 02:51:59 PM »
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.
« Last Edit: April 07, 2010, 03:05:13 PM by amr »
Logged

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: Debugging Rockbox Plugins
« Reply #1 on: April 07, 2010, 05:39:03 PM »
On the simulator, .rock are just a copy of the .elf file

To debug a plugin you can do:

Code: [Select]
% 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

Navigate in the sim, run any plugin, gdb interrupts the simulator and give you the prompt.
Logged
a wise man said: "a wise man said"

Offline amr

  • Member
  • *
  • Posts: 15
Re: Debugging Rockbox Plugins
« Reply #2 on: April 07, 2010, 06:18:38 PM »
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 ..
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Debugging Rockbox Plugins
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.065 seconds with 15 queries.