Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tcf-dev] Question about debugging a embedded device using TCF

Hello,

First of all, MIPS is currently not a supported architecture for debug with TCF agent; debug is supported for Intel (x86 and x86-64) and arm architectures. It would still be possible to build and use TCF agent for MIPS but debug related services must be disabled (by editing config.h).

If you want to build the TCF agent for your embedded box; the easiest solution is to build it natively on this box. Of course, this can be done only if you have all the pieces (GNU compiler, make utility...) available on it. If you absolutely need to cross compile, then it will not work out of the box but this is achievable. You will certainly have to update the Makefile.inc file to provide the correct include path (point to header files of your embedded box file system) and then you should be able to run the build with a command like this one:

make CC=<path to MIPS gcc cross-compiler> MACHINE=mipsle

Regards,
Didier Brachet

SHREYAS JOSHI wrote:
Hi,

I have an embedded box. This runs linux on it. It is based on MIPS architecture.
To be more specific it is mipsel. I want to debug my application using TCF.

I understand in order to first connect to the remote target. I need to have a agent running on it.
I downloaded the agent code.
git clone git://git.eclipse.org/gitroot/tcf/org.eclipse.tcf.agent.git
 
 How can I cross-compile with my toolchain to generate agent binary?

My first way to check the agent is by doing a telnet into the box via TCF.
The steps I do follow are
1) Windows-> OpenPerspective->others -> Remote System Explorer.
2) Right click -> new connection-> Telnet ( experimental) only.
3) HostName IP address; this is my target device IP address.
4) After all these steps it doesn't connect. I believe the reason is that the agent is not running in the box.
Please correct me if I am wrong here.

Then the entire problem boils down to "How can I cross compile the agent for my mipsel toolchain".
I already have a toolchain with me.

Thanks & regards,
Shreyas Joshi



_______________________________________________
tcf-dev mailing list
tcf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tcf-dev

Back to the top