Re: Problem with ddd and source file visibility
shaunak saha <[email protected]>
| Newsgroups | gmane.comp.debugging.ddd.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, It can be that your during execution your program is taking library from different location,not "A" and "B" Do an ldd <program_name> to check which libraries it is taking during execution. If it is taking from system, not the A and B compiled by you,then you can have this problem as in that case source code for those libraries are not there. Try to set LD_LIBRARY_PATH and then again do an "ldd" to check which libraries it is taking.If still it shows older libraries you check your compilation flags and do "-L" to set the library paths during compilation. If ldd command shows the libraries "A" and "B" then in ddd you should not have any problem to debug the source code of libraries. Just use 'GDB Settings' dialog box of DDD in that case. Hope that helps Regards, Shaunak On Tue, Aug 4, 2009 at 12:35 PM, Filippo Calvi <[email protected]> wrote: > Hello, > > I am having a problem using ddd: I cant seem to fix the source file > visibility in ddd. > > here is the situation... > > I have a project made up of the following components: > - library A in its own directory where source files are split in src and > inc directories > - library B in its own directory where source files are split in src and > inc directories > - the program itself in its own directory where source files are split in > in src and inc directories. > > When I debug the executable file I can correctly see the main file (which > is part of the program) and it can debugged fine, until I try to step into a > function listed in library A. > > If I open the "Open Source" Dialog, I can see the files being part of the > program, then I can see some header files of library A, but I cant see any > of the source files of library A. > > I tried to add the directory both using the gdb 'directory' command from > gdb prompt, and the 'GDB Settings' dialog box of DDD; nevertheless source > files for library A are nowhere to be seen :( > > If I try to list a function defined in library A using 'list > <FunctionName>' here is the result: > No line number information available for address 0x..... > > As far as I know both executables and libraries have been compiled using > the -ggdb option. > > Is there anybody who could give me some hints on how to detect the problem? > > If you need additional feel free to ask. > > thanks in advance > > Have a Nice Day > > > _______________________________________________ > ddd mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/ddd > > _______________________________________________ ddd mailing list [email protected] http://lists.gnu.org/mailman/listinfo/ddd