Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tcf-dev] error C2039 and TCF Eclipse Plugin

Sorry I don't really understand. If I set ENABLE_ContextProxy to 1 every cpudefs-mdep.c content (x86_64, arm, ..) gets ifdef-ed out so nothing gets build at all. 

What I am doing right now is trying to implement support for the Intel MCS51 family but for now I have to add a few services to the agent such that I can prepare the controller to be debugged. Everything works so far but I don't want to make wrong changes. So if I write another cpudefs-mdep.h/c for MCS51 would I left ENABLE_ContextProxy here out and just say #if defined(ENABLE_Mcs51Support) ... #endif ? 

Another part is to support the SDCC compiler and its debug information (this would be a part I might be able to contribute at some point if the community wants it - but this will still take some time). 


And I don't want to write another mail but I have another question regarding the TCF Eclipse Plugin..

Before the controller can be debugged, I need to transfer the compiled program to the Agent or at least the filepath to the executable and let the Agent do the rest of the work before the program gets started.

At the moment I put a simple method "programDevice" into the TCFLaunch.onConnect() method which at the moment just sends an hardcoded path to the .hex file I want to execute on my device. I got the same question as before: What would be a good place to write my custom code for this particular case (debug a MCS51 controller). Later I want to create a custom MCS51 Project Type but in this case no PE file or ELF file gets executed so I'll have to modify this plug-in too. Any recommendations for a "good way to do this"?

Best regards;
Stefan

-----Original Message-----
From: tcf-dev-bounces@xxxxxxxxxxx [mailto:tcf-dev-bounces@xxxxxxxxxxx] On Behalf Of Eugene Tarassov
Sent: Thursday, January 30, 2014 7:52 PM
To: TCF Development
Subject: Re: [tcf-dev] error C2039: 'user' : is not a member of '_CONTEXT' (cpudefs-mdep.c )

Hi Stefan,

cpudefs-mdep.c in agent\machine\arm\tcf is intended to be used to build native user-mode agent for Linux on ARM.
The file is not used to build Windows debugger - because Windows does not run on ARM.

If you want to build a non-native agent - one that runs on a machine other than your target, you have to set:
   #define ENABLE_ContextProxy     1
In this case all contents of the file is ifdef-ed out anyway.

Regards,
Eugene

-----Original Message-----
From: tcf-dev-bounces@xxxxxxxxxxx [mailto:tcf-dev-bounces@xxxxxxxxxxx] On Behalf Of Stefan.Falk@xxxxxxxxxxxx
Sent: Thursday, January 30, 2014 5:15 AM
To: tcf-dev@xxxxxxxxxxx
Subject: [tcf-dev] error C2039: 'user' : is not a member of '_CONTEXT' (cpudefs-mdep.c )

Sorry I have to bother you guys but I am not sure what's the problem here.

As I compile the agend I get errors in cpudefs-mdep.c in agent\machine\arm\tcf\ telling me "error C2039: 'user' : is not a member of '_CONTEXT'"

Line 46 to 63 cause that error since 'user' seems never to be defined. The only place where 'user' gets defined is in regset.h but only inside the

#if defined(__linux__) section.

Anyway, I can build the solution as the compiler ignores the incomplete cpudefs-mdep.obj file but it's still a little annoying. I might be able to fix it on my own but I wanted to let you to know. Maybe you already know a solution and the problem is with me.

Best regards.

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



This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.


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


Back to the top