Languages

Menu
Sites
Language
Library debug symbols

Hi,

I would like to use the tizen libraries debug symbols in the eclipse debugger, in order to have a better views of the crashs.

Do somebody know how to add them ?

Thanks

Benjamin

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

11 Replies
Lakshmi Grandhi
hi right click on the project then use "debug as" option to debug the application, it will automatically generate debug symbols no need to add them explicitly.
Benjamin Blois
The symbols for my code are loaded indeed, but I got those messages for each library I use : "warning: Could not load shared library symbols for /usr/lib/lib.so. Do you need "set solib-search-path" or "set sysroot"?"
Lakshmi Grandhi
In eclipse IDE you need specify the debug path of your library in Applications Properties. I have tried sample shared library with application in debug mode its working. Please check the parameters of the methods used in application.
Benjamin Blois
I don't see where I must specify the path to the libraries, nor to where the path must be set (to the /lib of the rootstrap ?) could you be a bit more precise ?
Lakshmi Grandhi
hi right click on your project then go to properties c/c++ build -->settings-->C++ compiler--> includes , here include all your header files as shown in screenshot below http://s1316.photobucket.com/user/Chinna5b6/media/Screenshotfrom2013-06-26183241_zps7b48ab21.png.html to add the path of shared libraries go to properties c/c++ build -->settings-->C++ linker --> libraries as shown in the screenshot http://s1316.photobucket.com/user/Chinna5b6/media/Screenshotfrom2013-06-26184210_zpse111835b.png.html
Benjamin Blois
I tried that, and it didn't work. However, I'm not sure I was clear enough on my issue. Let me explain a bit more. The programs are compiling, linking and launching, no problem here. The problem appear when I try to debug : I can't see the library's code while debugging, as their debug symbols could not be loaded. As a result of this, when I pause the program, I can only see the assembler and the address of the current instruction, which is not very useful...
Lakshmi Grandhi
Hi, Can please re-check wether your shared library contains debug symbols. Try enabling c++ Builder->Discoveryoptions->Automate discovery of paths and symbols. or Can you please check the debug symbols location using below link http://stackoverflow.com/questions/3366756/eclipse-cdt-loading-debug-symbols-for-an-external-shared-libraries
Benjamin Blois
Hi, I checked, and so was my problem : the shared libraries had no debug symbol, nor were linked to debug symbols. The library I would like to see are the tizen base libraries. Do you know if there is a way to get the debug symbols for those and add them. I'm upgrading today from 2.0 to 2.1, and so I hope that the debug symbols are bundled in this version. I'm coming back at you once i can test with the new version, if it did not work. Thank you very much for your answers until now. ps: I'm not very accustomed to VisualGDB, and I was wondering : which are the libraries used for the debug ? those from the rootstrap or those directly from the device ?
Benjamin Blois
Unfortunately, the issue is not fixed with the upgrade, do do you know where i can find the debug symbols for the tizen base libraries ? And then how to add them in the right place ?
Lakshmi Grandhi
Hi Benjamin. I didn't find any packages with debug symbols. But here is the link for tizen source code https://review.tizen.org/git/. Try to get source and build the packages with debug mode.
Lakshmi Grandhi
Hi Benjamin. I didn't find any packages with debug symbols. But here is the link for tizen source code https://review.tizen.org/git/. Try to get source and build the packages with debug mode.