PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Support for using PGDBG under Emacs

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



Joined: 11 Jul 2006
Posts: 1

PostPosted: Fri Feb 08, 2008 4:04 pm    Post subject: Support for using PGDBG under Emacs Reply with quote

PGDBG now supports debugging under Emacs via the GUD interface. The changes to gud.el that allows PGDBG to be used under Emacs on both Linux and Windows are found at:

http://www.pgroup.com/support/downloader.php?file=pgdbg-gud-support

The patched version of the GUD macros adds a new macro called pgdbg which is invoked as:

(pgdbg COMMAND-LINE)

Please note the comments in gud-common-init concerning the changes that were made that allows the executable file name to be identified in COMMAND-LINE when, for example, PGDBG is invoked to debug a MPI job. Also argument parsing of COMMAND-LINE now allows for limited handling of quoted strings, which allows the following command line:

"c:/Program Files/PGI/win64/7.1-5/bin/pgdbg" -mpi -np 2 sendrecv.exe

to be parsed correctly.

PGDBG's list command has been modified to produce file name and line number marking information similar to that produced when executing breakpoints. For example, if the user types:

list FUNCTION,1

an Emacs buffer for the source file that contains FUNCTION becomes visable, with the buffer's point being set to the beginning of the function.

When debugging 64 bit Windows applications it is important to invoke the wrapper script pgdbg.bat instead of the 64 bit binary pgdbg1, otherwise Emacs may produce a memory fault when incorrectly interpreting binary header of pgdbg1.exe prior to execution.

Also note that currently command completion is not supported.
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 © 2001, 2002 phpBB Group