[yocto] Setting up remote debugging with yocto pyro

Dr. Matthias Schöpfer Matthias.Schoepfer at ithinx.io
Tue Sep 12 08:44:45 PDT 2017


Hello together,

I am facing the following problem: I want to set up gdb(server) remote
debugging. I basically follow very closely this guide
http://www.yoctoproject.org/docs/2.3.1/dev-manual/dev-manual.html#platdev-gdb-remotedebug

My problem: If I do as written there, my -dbg packages are missing the
sources, hence, in my debugfs /usr/src/debug is empty. After doing some
research, I found (and I think, it should be documented there) that

PACKAGE_DEBUG_SPLIT_STYLE = "debug-file-directory"

must be set. And luckily, now the -dbg packages do have the sources
included (checked with oe-pkgdata-util list-pkg-files). But the build of
the image fails. I attached local.conf and the rather lengthy output if
someone is interested. I build pyro with qemu-x86_64 and
core-image-minimal, so nothing too fancy I would guess.

To sum up, I get lots of File not Founds in the pattern:

/home/mschoepf/i-thinx/yocto/qemu_x86_64/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs-orig/usr/lib/debug/.build-id/04/3ec7422665726df42d5fd22b151f876fe119e2

while

/home/mschoepf/i-thinx/yocto/qemu_x86_64/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs-orig/usr/lib/debug/.build-id/04/3ec7422665726df42d5fd22b151f876fe119e2.debug
exists.

So, basically, any hint how to get this thing working is appreciated! I
do not even have a clue where this files come from...

Regards,

    Matthias




i.A. Dr.-Ing. Matthias Schöpfer  |  ithinx GmbH  |  Software Engineer
Phone: +49 (221) 99589-332  |  Fax: +49 (221) 99589-199
Address: ithinx GmbH  |  Butzweilerhof Allee 4  |  50829 Cologne  |  Germany
E-Mail: Matthias.Schoepfer at ithinx.io  |  Website: www.ithinx.io
Registered Office: Cologne  |  District court: Marburg  |  HRB 6749
Managing Director: Christian Faust

This e-mail may contain confidential and/or privileged information. if you are not the intended recipient (or have received this e-mail in error) please
notifiy the sender immediately and destroy this e-mail. Any unautohrized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

We like trees. Please consider the environment before printing this e-mail. Thank you.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bitbake-core-image-minimal-error.txt
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170912/5305c5db/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: local.conf
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170912/5305c5db/attachment.ksh>


More information about the yocto mailing list