dgilmore
Joined: 11 Jul 2006 Posts: 1
|
Posted: Fri Feb 08, 2008 4:04 pm Post subject: Support for using PGDBG under Emacs |
|
|
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. |
|