Re: [yocto] Question about remote debugging via gdbserver
Hi Frederico, Sorry for the delayed response. If you want to step into code for which the debugger does not have the source info Eclipse should actually tell you. But as a prerequisite you will need to install the dev and debug packages for gstreamer (and eventually others) to the root file system you are using on your development host. For that you need to tell YP to include them which you do by adding dev-pkg and dbg-pkg to EXTRA_IMAGE_INSTALL in the conf/local.conf file of your build environment. Rudi On Fri, Apr 18, 2014 at 1:28 AM, Federico Vitali fede.vit...@gmail.comwrote: Goodmorning Rudolf, thank you again for your time. I have not explained my goal very well, so I try to explain with a specific example. I'm working with gstreamer for a project I'm following for my company. Let's take the gstreamer hello world application, here is the source code: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-helloworld.html#section-helloworld I've succesfully built and deployed the application. I can debug and follow the code of the application line by line with eclipse. Now, if I want to enter into a function of gstreamer libs (e.g. gst_pipeline_new), what should I have to do? Federico 2014-04-16 21:22 GMT+02:00 Rudolf Streif rstr...@linuxfoundation.org: Hi Federico, I knew that I can add source paths to the debugger. Ok, if that's not the issue what exactly is not working for you? I see in your debug profiles that you have some binaries eg ls. Did you import that binary from sysrootfs on your build machine? Can you please tell me the steps before adding the path? No, that's actually sample code of a simple ls application that I use for teaching a class on Linux APIs. Cheers, Rudi -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Question about remote debugging via gdbserver
Goodmorning Rudolf, thank you again for your time. I have not explained my goal very well, so I try to explain with a specific example. I'm working with gstreamer for a project I'm following for my company. Let's take the gstreamer hello world application, here is the source code: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-helloworld.html#section-helloworld I've succesfully built and deployed the application. I can debug and follow the code of the application line by line with eclipse. Now, if I want to enter into a function of gstreamer libs (e.g. gst_pipeline_new), what should I have to do? Federico 2014-04-16 21:22 GMT+02:00 Rudolf Streif rstr...@linuxfoundation.org: Hi Federico, I knew that I can add source paths to the debugger. Ok, if that's not the issue what exactly is not working for you? I see in your debug profiles that you have some binaries eg ls. Did you import that binary from sysrootfs on your build machine? Can you please tell me the steps before adding the path? No, that's actually sample code of a simple ls application that I use for teaching a class on Linux APIs. Cheers, Rudi -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Question about remote debugging via gdbserver
Hi Federico, I knew that I can add source paths to the debugger. Ok, if that's not the issue what exactly is not working for you? I see in your debug profiles that you have some binaries eg ls. Did you import that binary from sysrootfs on your build machine? Can you please tell me the steps before adding the path? No, that's actually sample code of a simple ls application that I use for teaching a class on Linux APIs. Cheers, Rudi -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Question about remote debugging via gdbserver
Hi everyone, I'm wondering if it is possible to debug an installed library on the target via gdbserver. I try to explain: suppose that I'm developing an application using gstreamel libraries. I set up eclipse / gdb to work with my target on the network. When I reach a gst funciont (e.g. gst_init) I would like to jump into the line of code of gstreamer which implements that function. Is there a way to instruct eclipse to fetch symbols and sources from local filesystem, eg: symbols: /opt/poky/1.5.1/sysroots/armv6-vfp-poky-linux-gnueabi/usr/lib/.debug/libgstbase-0.10.so.0.30.0 sources: /usr/src/debug/gstreamer/0.10.36-r2/gstreamer-0.10.36/ Thank you in advance! Federico -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto