PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Debugging an application with parameters

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



Joined: 04 Jan 2007
Posts: 3

PostPosted: Tue Feb 20, 2007 2:37 pm    Post subject: Debugging an application with parameters Reply with quote

Hello,

I'm currently trying to debug an application using pgdbg in text mode.

Here is my command:
pgdbg -text rams -f RAMSIN.hist

-f specify a filename

Here is the result using that command:
Missing -f argument

So i tried using double cote as following:
pgdbg -text rams "-f RAMSIN.hist"

The debugger starts but my application can't find the file (RAMSIN.hist) specified with -f parameter.

Same result using an absolute path for my RAMSIN.hist path.

What is the proper way to use pgdbg in that case ?

Regards
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6208
Location: The Portland Group Inc.

PostPosted: Tue Feb 20, 2007 4:44 pm    Post subject: Reply with quote

Hi nnaudier,

What does the file RAMSIN.hist contain? Is it commands for the debugger or commands for your executable?

"-f" is not a supported swtich for x86 based processors and it appears to be an oversite that PGDBG accepts it.

Sorry for the confusion,
Mat
Back to top
View user's profile
nnaudier



Joined: 04 Jan 2007
Posts: 3

PostPosted: Wed Feb 21, 2007 5:53 am    Post subject: Reply with quote

RAMSIN.hist is commands for my executable.
-f is for my executable.
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6208
Location: The Portland Group Inc.

PostPosted: Wed Feb 21, 2007 9:43 am    Post subject: Reply with quote

To pass commands to your exe, first start the debugger using "pgdbg -text rams", then from the pgdbg command prompt type "run -f RAMSIN.hist". More detailed information about using PGDBG can be found in the PGI Tools Guide.

- Mat
Back to top
View user's profile
nnaudier



Joined: 04 Jan 2007
Posts: 3

PostPosted: Wed Feb 21, 2007 12:10 pm    Post subject: Reply with quote

Thank you for your quick answer.
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