|
[Sponsors] |
How to debug .so library in the source code level |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 22, 2006, 08:04 |
How to debug .so library in the source code level
|
#1 |
Guest
Posts: n/a
|
I compiled a Fortram/c/c++ mixed language program using intel compilers with options: -g, and much dynamic library .so and an executive were generated, but when trying to debug it using PGDBG(from PGI group), the debuger aborted after a moment, and during this short interval, I foung the memory and swap space were used out, and this case, I do not know what is the reason. For the same program, when debug using TotalView, I can not see the source code and of course, I do not know where the program goes, Can anyone help me on this problem. Thanks in advance.
Li |
|
October 23, 2006, 08:43 |
Re: How to debug .so library in the source code le
|
#2 |
Guest
Posts: n/a
|
Unless you have the source code for the library your debug options are going to be limited, because the compiler has no way of instrumenting a binary library for debugging. You may be stuck with the tried-and-true method of putting in write statements to determine where the code is dying.
|
|
October 23, 2006, 10:29 |
Re: How to debug .so library in the source code le
|
#3 |
Guest
Posts: n/a
|
I have all the source code of it, compilered with -g, but it seems that Totalview can not know where to find the source code??
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Git or other systems for source code and documentation management | olesen | OpenFOAM | 4 | November 12, 2009 11:03 |
modify the source code of simpleSRFFoam solver | Pirlo | OpenFOAM Programming & Development | 0 | October 19, 2009 09:49 |
Understanding k-omega SST model source code | tmhonka | OpenFOAM Programming & Development | 1 | September 8, 2009 08:33 |
heat equation solution source code | john | Main CFD Forum | 1 | May 28, 2004 00:41 |
Which is better to develop in-house CFD code or to buy a available CFD package. | Tareq Al-shaalan | Main CFD Forum | 10 | June 13, 1999 00:27 |