Hi Carlos,
thank you for you quick and helpful response!
I have installed Sequoyah and it works indeed. I can now fire up the c+
+ debugger to connect, it only gives the following error:
org.eclipse.cdt.debug.mi.core.MIException: Process Terminated
at org.eclipse.cdt.debug.mi.core.MISession.setup(MISession.java:239)
at org.eclipse.cdt.debug.mi.core.MISession.<init>(MISession.java:210)
at
org.eclipse.cdt.debug.mi.core.MIPlugin.createMISession0(MIPlugin.java:
142)
at org.eclipse.cdt.debug.mi.core.MIPlugin.createSession(MIPlugin.java:
471)
at
org.eclipse.cdt.debug.mi.core.AbstractGDBCDIDebugger.createGDBSession(AbstractGDBCDIDebugger.java:
114)
at
org.eclipse.cdt.debug.mi.core.AbstractGDBCDIDebugger.createSession(AbstractGDBCDIDebugger.java:
68)
at
org.eclipse.cdt.launch.internal.LocalCDILaunchDelegate.launchDebugSession(LocalCDILaunchDelegate.java:
344)
at
org.eclipse.cdt.launch.internal.LocalCDILaunchDelegate.createCDISession(LocalCDILaunchDelegate.java:
469)
at
org.eclipse.cdt.launch.internal.LocalCDILaunchDelegate.launchLocalDebugSession(LocalCDILaunchDelegate.java:
146)
at
org.eclipse.cdt.launch.internal.LocalCDILaunchDelegate.launchDebugger(LocalCDILaunchDelegate.java:
113)
at
org.eclipse.cdt.launch.internal.LocalCDILaunchDelegate.launch(LocalCDILaunchDelegate.java:
73)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:
853)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:
702)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:
923)
at org.eclipse.debug.internal.ui.DebugUIPlugin
$8.run(DebugUIPlugin.java:1126)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
At page 6 of this document:
http://developer.download.nvidia.com/tegra/docs/android_gdb_debugging.pdf
(which describes a similar approach) it says:
"If you get the error “Error creating session”, it is usually due to
not starting eclipse from a
cygwin shell on Windows. If you did and still get the error, try
executing the arm-eabigdb
binary in a shell and resolve any errors that might show up doing so".
Starting eclipse from shell doesn't change and calling arm-eabigdb
doesn't give errors. Tomorrow I am going to try the same steps using
Ubuntu instead of Windows, hopefully that gives more luck because at
the moment I am stuck.
But thanks again for your help and I will give an update if there is
any progress.
Willem
On 3 sep, 22:15, Carlos Alberto Souto Junior <
csoutojun...@gmail.com>
wrote:
> Hi,
>
> You need to convert the project to a C/C++ one. This can be done by using
> the standard CDT way,
> or you can use the Sequoyah Android Native facilities to speed up the
> process. (
http://www.eclipse.org/sequoyah)
>
> Using Sequoyah, it is just a matter of right-clicking the Android Project,
> choose Android Tools > Add Native Support...
> Just follow the wizard and, if your project have more than one lib, just
> point one and define the other in the
android.mk.
>
> Hopefully, after adding the native support this way, you will be able to
> configure the C/C++ run configuration and debug
> your application.
>
> Hope it helped.
>
>
>
>
>
> On Fri, Sep 3, 2010 at 7:53 AM, Willem-Jan Spoel <
wjsp...@gmail.com> wrote:
> > Hi all,
>
> > the following article describes howto debug native code:
>
> >
http://groups.google.com/group/android-ndk/web/debugging-through-the-...
>
> > I have followed all the steps successfully, except for the last one.
> > it says: "Launch the C/C++ Application debug and wait for the Eclipse
> > GDB session to fully connect to the emulator's gdbserver instance." I
> > have problems with that step because I can't start that debug
> > configuration because there is no project assigned to it.
>
> > If I open the C/C++ Application debug properties and browse for a
> > project, the android project is not listed. If I type in the name of
> > the android project, I get the error message "Program does not
> > exist".
>
> > Does someone know howto solve this problem?
>
> > Thanks in advance,
> > Willem
>
> > Eclipse version = Galileo
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-ndk" group.
> > To post to this group, send email to
andro...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
android-ndk...@googlegroups.com<android-ndk%2Bunsubscribe@googlegr
oups.com>
> > .