Skip to contentSkip to conversation

How to use debug symbols from recipe-dbg package?

DISCUSSION Mauro Ziliani 2 participants 2 messages Jun 7, 2021 – Jun 8, 2021

lore
Share & tools
lore
#0 lore raw

Hi all.
I have the recipe myapp.bb, and I get from it the debian packages myapp_1.0-r0_armhf.deb and myapp-dbg_1.0-r0_armhf.deb

How can I use the debug symbols in myapp-dbg_1.0-r0_armhf.deb with gdb and the application in myapp_1.0-r0_armhf.deb package?

Best regards,
MZ

Sent from Mailspring (https://getmailspring.com/), the best free email app for work

#1 lore raw
Quoted 4 lines · Mauro Ziliani

Hi all.
I have the recipe myapp.bb <https://urldefense.com/v3/__http://myapp.bb__;!!AjveYdw8EvQ!MCUgANMJMSSkVvGlEMADV7AOmOe1l-C0-uHQ2M0G98R-Ls2dR9cAuooQ_p9oo-slMP9a3Q$>, and I get from it the debian packages myapp_1.0-r0_armhf.deb <https://urldefense.com/v3/__http://myapp_1.0-r0_armhf.deb__;!!AjveYdw8EvQ!MCUgANMJMSSkVvGlEMADV7AOmOe1l-C0-uHQ2M0G98R-Ls2dR9cAuooQ_p9oo-sJEyh82A$> and myapp-dbg_1.0-r0_armhf.deb

How can I use the debug symbols in myapp-dbg_1.0-r0_armhf.deb <https://urldefense.com/v3/__http://myapp-dbg_1.0-r0_armhf.deb__;!!AjveYdw8EvQ!MCUgANMJMSSkVvGlEMADV7AOmOe1l-C0-uHQ2M0G98R-Ls2dR9cAuooQ_p9oo-t3-XRCvA$> with gdb and the application in myapp_1.0-r0_armhf.deb <https://urldefense.com/v3/__http://myapp_1.0-r0_armhf.deb__;!!AjveYdw8EvQ!MCUgANMJMSSkVvGlEMADV7AOmOe1l-C0-uHQ2M0G98R-Ls2dR9cAuooQ_p9oo-sJEyh82A$> package?

Hi Mauro,

I'm not sure that I understand. Why wouldn't you just install the dbg deb along with gdb and debug on target?

You might also want to look at using debuginfod if you are on the hardknott or master branch:

https://pretalx.com/yocto-project-summit-2021/talk/ADCYJ7/

https://www.youtube.com/watch?v=S3QLr113mx8

Did you follow the YP docs:

http://docs.yoctoproject.org/dev-manual/common-tasks.html#debugging-with-the-gnu-project-debugger-gdb-remotely

?

../Randy

Quoted 9 lines

Best regards,
  MZ

Sent from Mailspring <https://urldefense.com/v3/__https://getmailspring.com/__;!!AjveYdw8EvQ!MCUgANMJMSSkVvGlEMADV7AOmOe1l-C0-uHQ2M0G98R-Ls2dR9cAuooQ_p9oo-tpux6pZA$>, the best free email app for work

Signature · 2 lines
# Randy MacLeod
# Wind River Linux