Purusottam Kaushik
Purusottam Kaushik

Reputation: 167

Eclipse Debug Plugin

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.

  1. Try to Develop a debugger from scratch
  2. Develop a GBD sprite and somehow make eclipse cdt-gdb recognize it and able to debug our board.
  3. Extend the CDT debugger, so that we can get more custom views. But we will need GDB sprite also in this case.

Any help/guidance on what approach to follow is highly appreciated.

Upvotes: 0

Views: 847

Answers (1)

rockstar
rockstar

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

Related Questions