PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Execution/flow control during debugging

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
timp



Joined: 25 Oct 2007
Posts: 4

PostPosted: Thu Oct 25, 2007 12:48 pm    Post subject: Execution/flow control during debugging Reply with quote

I just had a couple of questions regarding execution control in the debugger GUI (the code base is C/C++ but I presume this is language independent).

- how would I jump to a given line, e.g. as indicated by the cursor ? (i.e. no execution of code between the current program counter/line and the new location)

- how would I 'continue to a given point', e.g. the line under the current cursor position, from the current execution point ?

Cheers
Tim
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Thu Oct 25, 2007 1:00 pm    Post subject: Reply with quote

Hi Tim,

You click on the line in the Event column you want to set breakpoint, it should mark at column with a red dot, then when you click on Run button, it should stop at that line or if you have multiple breakpoints you can click Cont button.

Note that the line numbers must be highlighted in darker color in order to set a break point. I would recommend you compile with -O0 -g to get the line numbers right. If you compile with optimization, the line number might be off a bit.

Hongyon
Back to top
View user's profile
timp



Joined: 25 Oct 2007
Posts: 4

PostPosted: Thu Oct 25, 2007 1:12 pm    Post subject: Reply with quote

Thanks Hongyon, i'll keep the -O0 issue in mind. As far as the continue issue but I was really thinking of a 'continue to..' without having to set/unset breakpoints (which can very quickly get to be a pain). This is fairly standard operation on many of the Solaris, HP-UX, Linux & Windows debugger environments i've used, so was hoping there's similar in PGDBG.

Any thoughts on the 'jump to' ?

Cheers
t
Back to top
View user's profile
donb



Joined: 20 Jul 2004
Posts: 88
Location: The Portland Group, Inc.

PostPosted: Thu Oct 25, 2007 2:12 pm    Post subject: Reply with quote

Hi Tim

PGDBG doesn't currently support the functionality that you are describing. We'll take your feedback under consideration when planning future releases.

thanks
--Don
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group