| View previous topic :: View next topic |
| Author |
Message |
nnaudier
Joined: 04 Jan 2007 Posts: 3
|
Posted: Tue Feb 20, 2007 2:37 pm Post subject: Debugging an application with parameters |
|
|
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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Tue Feb 20, 2007 4:44 pm Post subject: |
|
|
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 |
|
 |
nnaudier
Joined: 04 Jan 2007 Posts: 3
|
Posted: Wed Feb 21, 2007 5:53 am Post subject: |
|
|
RAMSIN.hist is commands for my executable.
-f is for my executable. |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Wed Feb 21, 2007 9:43 am Post subject: |
|
|
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 |
|
 |
nnaudier
Joined: 04 Jan 2007 Posts: 3
|
Posted: Wed Feb 21, 2007 12:10 pm Post subject: |
|
|
| Thank you for your quick answer. |
|
| Back to top |
|
 |
|