Reputation: 167
I want to make an embedded application running on a hardware board.
The target is Eclipse CDT, which uses the GDB to debug any remote embedded application. I am totally lost on how to start this project the possible options which I can think of are as following.
Any help/guidance on what approach to follow is highly appreciated.
Upvotes: 0
Views: 847
Reputation: 3538
You need to check out the Eclipse debugger framework .
If i understand you clearly what you really need is to develop an eclipse plugin debugger which is capable of being able to debug your scripts . If this is what you want then you surely dont need to start from scratch . You MUST make use of the framework that eclipse itself provides rather that re-inventing the wheel .
This article How to make eclipse debugger plugin is an excellent example to how to be able to start making an eclipse debugger . You must understand the communication that happens between the eclipse framework and the sample interpreter ( see the link ) .
Once you understand the flow you will see that majority of the effort needed is in adding debug brain to your interpreter/compiler . The eclipse framework is robust and will need minimal customizations (if any ) . You will get to know the algorithm that should exist in your customized debugger . Its no easy task but not impossible either .
Upvotes: 2