|
[Sponsors] | |||||
Debugging - How to access codes of schemes by using GDB? |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Member
Geon-Hong Kim
Join Date: Feb 2010
Location: Ulsan, Republic of Korea
Posts: 36
Rep Power: 17 ![]() |
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 don't know what the pending works in GDB nor how to set a break point in the code. Anyone who solved this? |
|
|
|
|
|
|
|
|
#2 |
|
Member
Geon-Hong Kim
Join Date: Feb 2010
Location: Ulsan, Republic of Korea
Posts: 36
Rep Power: 17 ![]() |
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. |
|
|
|
|
|
![]() |
| Tags |
| breakpoint, debug, gdb, pending |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is it worth it? | Jason Bardis | Main CFD Forum | 47 | July 27, 2011 05:52 |
| time stepping schemes for compressible DNS/LES | shyamdsundar | Main CFD Forum | 0 | January 15, 2010 00:15 |
| A strange error when debugging fvcgradU using GDB | mattijs | OpenFOAM Running, Solving & CFD | 0 | August 14, 2008 05:16 |
| OpenFOAM14 for Mac OSX Darwin 104 | gschaider | OpenFOAM Installation | 118 | July 20, 2008 06:19 |
| Including a new utility in OF 13 | alondono | OpenFOAM Running, Solving & CFD | 7 | April 11, 2008 10:17 |