[maemo-developers] gdb does not display source code
From: Sachin Kundu skundu at adroit-inc.comDate: Thu Oct 25 15:08:26 EEST 2007
- Previous message: Maemo 4.0 Chinook Beta SDK and Missing Packages
- Next message: gdb does not display source code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi While trying to debug on n800 using gdb, I am not able to see source code when the breakpoint is hit. I have the complete source tree loaded on the memory card. Folder structure is something like -----------------------------------------Source_folder---------------------- ------- | | | | | Folder1 Folder2 Folder3 Folder4 debug (source) (source)... | Collection of .so and a executable This source was compiled on the scratchbox under the ARM target and then copied on the device for using the gdb on device. Now when executable is run under gdb and a bp is hit, no source code corresponding to the bp is displayed. It shows something like "in example_file.cpp" and the line number. I was assuming that the path to source would be coded relative to executable, however this is clearly not happening. I have also tried making similar folder structure on the device like on scratchbox, just in case they are absolute, but no respite. Why does gdb not show source code? I know source directory can be specified under gdb, but I am having completely built source tree already, in same folder structure. Isn't that all that's needed to be done? Thanks Sachin Kundu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20071025/4326fca7/attachment.htm
- Previous message: Maemo 4.0 Chinook Beta SDK and Missing Packages
- Next message: gdb does not display source code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]