Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] What is involved in adding support for dbx to PTP?

[Trying again after email bounced…]

Hi Alexandre,

To support a new debugger backend you need to do very little Eclipse plugin development. All the backend support is in the SDM which is a C program. The source is located in the org.eclipse.ptp.debug.sdm package that you can obtain from http://git.eclipse.org/c/ptp/org.eclipse.ptp.git. 

To add a new backend, the main work will be to provide a replacement for org.eclipse.ptp.debug.sdm/src/server/dbg_server.c. You also need to modify src/backend.c to add a pointer to the backend routines, and update Makefile.am. Once you've done this, I'll be happy to add a new backend type to the client plugin so that it will be recognized.

I think providing replacements for breakpoints, stepping, and other commands will be fairly simple, though you will need to supply a mechanism for communicating with dbx to both send commands and read responses asynchronously. The most difficult part will be implementing the code that obtains variable values, since this needs to also be able to query the type of the variable and build an internal representation of both the type and value. Depending on the functionality available in dbx, it may not be possible to obtain this information. If that's the case, I'd be interested to see if it would be possible to provide an alternate mechanism that would work with dbx.

I suggest you take a look at this code to see if you think the work is feasible for you. If you're interested in going ahead, let me know and we can discuss further.

Regards,
Greg

On Nov 14, 2012, at 7:38 PM, Alexandre Sunny Kovalenko <incanter@xxxxxxxxxxx> wrote:

> Good people,
> 
> I am trying to understand what will it take to add support for the remote debugger other than gdb (IBM dbx in my case) to PTP. I am reasonably proficient in C/C++ and Java, but have zero experience developing stuff to plug into Eclipse.
> 
> Any pointers will be greatly appreciated.
> 
> Alexandre Kovalenko.
> _______________________________________________
> ptp-dev mailing list
> ptp-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ptp-dev



Back to the top