debug open mp with gdb

General OpenMP discussion

debug open mp with gdb

Postby santana » Mon Jan 07, 2008 10:08 am

Hi, I just started to use open MP. My code(c++ previously serial tested and debugged) crashes when I use openMp, so I open up in gdb. I set break point as usual and gdb stops there, however when I try to print any variables I get message:

No symbol ... in current context.

So I wonder if there is anything specific that needs to be done when debugging OpenMP codes with gdb?
Thanks
santana
 
Posts: 3
Joined: Mon Jan 07, 2008 10:00 am

Re: debug open mp with gdb

Postby santana » Mon Jan 07, 2008 2:57 pm

I answer my own post. :D I also asked the same question on the gdb mail list and was told:
The GNU OpenMP implementation has not been tested much with GDB. I
suspect it does not produce good debug information.

:cry:
santana
 
Posts: 3
Joined: Mon Jan 07, 2008 10:00 am


Return to Using OpenMP

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], Yahoo [Bot] and 14 guests