CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Debugging - How to access codes of schemes by using GDB? (https://www.cfd-online.com/Forums/openfoam-programming-development/124204-debugging-how-access-codes-schemes-using-gdb.html)

Geon-Hong September 30, 2013 00:33

Debugging - How to access codes of schemes by using GDB?
 
Dear Foamers,

Recently I've tried to debug the limiter of OF-2.2. I use GDB as a debugging tool.

What I want to do is monitor values in NVDVTVDV.H file, but I cannot reach to this class via GDB since this class is handled by temporary object handler(tmp<...>).

After I ran gdb and loaded interFoam, I tried to set a break point in the class as,

Code:


(gdb) b NVDVTVDV.H:130
No source file named NVDVTVDV.H.
Make breakpoint pending on future shared library load? (y or [n])

I've got the above error message.

I don't know what the pending works in GDB nor how to set a break point in the code.

Anyone who solved this?

Geon-Hong October 1, 2013 20:05

Resolved
 
Never mind.

I solved the problem by setting DEBUG switch on when I compile the source codes.

Now I can access the source codes in the library.


All times are GMT -4. The time now is 16:46.