Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb OpenMP
@ 2008-01-07 18:22 burlen
  2008-01-07 18:25 ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: burlen @ 2008-01-07 18:22 UTC (permalink / raw)
  To: gdb

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

-- 
Burlen Loring
Information Technologist III
Space Science Center
Institute for the Study of Earth, Oceans, and Space
University of New Hampshire
39 College Road, Durham, NH 03824
Phone: 603-862-1140


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gdb OpenMP
  2008-01-07 18:22 gdb OpenMP burlen
@ 2008-01-07 18:25 ` Daniel Jacobowitz
  2008-01-07 18:28   ` burlen
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2008-01-07 18:25 UTC (permalink / raw)
  To: burlen; +Cc: gdb

On Mon, Jan 07, 2008 at 01:27:23PM -0500, burlen wrote:
> 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?

The GNU OpenMP implementation has not been tested much with GDB.  I
suspect it does not produce good debug information.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gdb OpenMP
  2008-01-07 18:25 ` Daniel Jacobowitz
@ 2008-01-07 18:28   ` burlen
  2008-01-07 18:36     ` Daniel Jacobowitz
  2008-01-07 18:48     ` Maik Beckmann
  0 siblings, 2 replies; 5+ messages in thread
From: burlen @ 2008-01-07 18:28 UTC (permalink / raw)
  To: burlen, gdb

Thanks, are there alternatives that have been tested with gdb?

Daniel Jacobowitz wrote:
> On Mon, Jan 07, 2008 at 01:27:23PM -0500, burlen wrote:
>   
>> 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?
>>     
>
> The GNU OpenMP implementation has not been tested much with GDB.  I
> suspect it does not produce good debug information.
>
>   


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gdb OpenMP
  2008-01-07 18:28   ` burlen
@ 2008-01-07 18:36     ` Daniel Jacobowitz
  2008-01-07 18:48     ` Maik Beckmann
  1 sibling, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2008-01-07 18:36 UTC (permalink / raw)
  To: burlen; +Cc: gdb

On Mon, Jan 07, 2008 at 01:33:13PM -0500, burlen wrote:
> Thanks, are there alternatives that have been tested with gdb?

I don't know of any.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gdb OpenMP
  2008-01-07 18:28   ` burlen
  2008-01-07 18:36     ` Daniel Jacobowitz
@ 2008-01-07 18:48     ` Maik Beckmann
  1 sibling, 0 replies; 5+ messages in thread
From: Maik Beckmann @ 2008-01-07 18:48 UTC (permalink / raw)
  To: gdb

Am Montag 07 Januar 2008 19:33:13 schrieb burlen:
> Thanks, are there alternatives that have been tested with gdb?

I don't know about examples because I didn't do more than toy examples with 
openmp , but it might be a good idea to ask the fortran folks about their gdb 
experiences.

Best,
 -- Maik



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-01-07 18:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-07 18:22 gdb OpenMP burlen
2008-01-07 18:25 ` Daniel Jacobowitz
2008-01-07 18:28   ` burlen
2008-01-07 18:36     ` Daniel Jacobowitz
2008-01-07 18:48     ` Maik Beckmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox