CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   How to debug .so library in the source code level (https://www.cfd-online.com/Forums/main/12447-how-debug-so-library-source-code-level.html)

liqiang October 22, 2006 07:04

How to debug .so library in the source code level
 
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

ag October 23, 2006 07:43

Re: How to debug .so library in the source code le
 
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.

liqiang October 23, 2006 09:29

Re: How to debug .so library in the source code le
 
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??


All times are GMT -4. The time now is 20:25.