On Fri, 2012-03-23 at 22:07 -0400, Degao Peng wrote:
> Hi,
>
>
> This is exactly the problem
> in
http://dev.eclipse.org/mhonarc/lists/ptp-user/msg01658.html
>
>
> But I don't see any solution out from that. Below I will describe the
> problem again.
>
>
> I've been using Eclipse for years and recently I needed to debug a
> parallel package and installed "Parallel Tools Platform (PTP) End-User
> Runtime" plugin. I tried very hard and finally got sdm installed by
> hand downloading the ptp-proxy-xxxxx.zip. The MPI HelloWorld program
> for C from Eclipse works in "Run", but when I "Debug" it, the error in
> the subject popped up and the program was terminated. Actually my gdb
> works very well in the workstation. I can run parallel application
> from Eclipse and command line. I can also debug serial codes in
> Eclipse with gdb. I tried updating and reinstalling, but neither way
> worked. Can anybody help me out?
>
>
> The corresponding output is as follows. Thank you very much!
>
>
> Degao
>
>
> ===================Software
> information=======================================
> Eclipse IDE for Java Developers
>
>
> Version: Indigo Service Release 2
> Build id: 20120216-1857
>
>
> $ gdb --version
> GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6)
> Copyright (C) 2010 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <
http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show
> copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-redhat-linux-gnu".
> For bug reporting instructions, please see:
> <
http://www.gnu.org/software/gdb/bugs/>.
>
>
> $ mpirun --version
> mpirun (Open MPI) 1.4.5
>
>
> Report bugs to
http://www.open-mpi.org/community/help/
>
>
> $ /MY-LOCAL-PATH/proxy/org.eclipse.ptp.linux.x86_64_5.0.6.201203091926/bin/sdm --help
> /MY-LOCAL-PATH/sdm: unrecognized option '--help'
> sdm [--debugger=value] [--debugger_path=path]
> [--proxy=proxy]
> [--host=host_name] [--port=port]
> [--master]
> [--server=rank]
> [--debug[=level]]
>
>
> ===================The Console when debugging the parallel
> code====================
> gdb: invalid option -- 'q'
>
>
> sdm [--debugger=value] [--debugger_path=path]
>
>
> [--proxy=proxy]
>
>
> [--host=host_name] [--port=port]
>
>
> [--master]
>
>
> [--server=rank]
>
>
> [--debug[=level]]
>
>
> gdb: invalid option -- 'q'
>
>
> sdm [--debugger=value] [--debugger_path=path]
>
>
> [--proxy=proxy]
>
>
> [--host=host_name] [--port=port]
>
>
> [--master]
>
>
> [--server=rank]
>
>
> [--debug[=level]]
>
>
>
>
> ===================The error
> log==============================================
> !SESSION 2012-03-23 21:32:15.216
> -----------------------------------------------
> eclipse.buildId=M20120208-0800
> java.version=1.6.0_22
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
> Framework arguments: -product org.eclipse.epp.package.java.product
> Command-line arguments: -os linux -ws gtk -arch x86_64 -product
> org.eclipse.epp.package.java.product
>
>
> !ENTRY org.eclipse.ptp.launch 4 4 2012-03-23 21:39:14.978
> !MESSAGE Debugger error: Unable to determine gdb version
> !STACK 1
> org.eclipse.core.runtime.CoreException: Debugger error: Unable to
> determine gdb version
> at
> org.eclipse.ptp.debug.internal.core.PSession.connectToDebugger(PSession.java:135)
> at org.eclipse.ptp.launch.ParallelLaunchConfigurationDelegate
> $DebuggerSession.run(ParallelLaunchConfigurationDelegate.java:93)
> at org.eclipse.jface.operation.ModalContext
> $ModalContextThread.run(ModalContext.java:121)
> !SUBENTRY 1 org.eclipse.ptp.debug.core 4 4 2012-03-23 21:39:14.979
> !MESSAGE Debugger error: Unable to determine gdb version
>
>
> !ENTRY org.eclipse.ptp.launch 4 4 2012-03-23 21:46:49.139
> !MESSAGE Debugger error: Unable to determine gdb version
> !STACK 1
> org.eclipse.core.runtime.CoreException: Debugger error: Unable to
> determine gdb version
> at
> org.eclipse.ptp.debug.internal.core.PSession.connectToDebugger(PSession.java:135)
> at org.eclipse.ptp.launch.ParallelLaunchConfigurationDelegate
> $DebuggerSession.run(ParallelLaunchConfigurationDelegate.java:93)
> at org.eclipse.jface.operation.ModalContext
> $ModalContextThread.run(ModalContext.java:121)
> !SUBENTRY 1 org.eclipse.ptp.debug.core 4 4 2012-03-23 21:46:49.139
> !MESSAGE Debugger error: Unable to determine gdb version
>
>
> ==================Error message on the tty where eclipse was
> invoked==============
> Msg: EventRequestManager - addEventRequest(): Request: Start debugger
> request in status [UNKNOWN] for {0-1}.
> **** Msg: AbstractEventManager - registerEventRequest(): Request:
> Start debugger request in status [RUNNING] for {0-1}.
> Msg: NotifyJob - size of runnables: 4
> **** Msg: AbstractEventManager - notifyEventRequest(): Request: Start
> debugger request in status [DONE] for {}.
> Msg: EventRequestManager - addEventRequest(): Request: Stop debugger
> request in status [UNKNOWN] for {}.
> Msg: EventRequestManager - addEventRequest(): Request: Stop debugger
> request in status [UNKNOWN] for {}.
> **** Msg: AbstractEventManager - notifyEventRequest(): Request: Stop
> debugger request in status [DONE] for {}.
>
>