Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CDebugger Extension Does Not Load
CDebugger Extension Does Not Load [message #1073286] Wed, 24 July 2013 13:17 Go to next message
Carmen Casaru is currently offline Carmen CasaruFriend
Messages: 10
Registered: July 2013
Junior Member
I am trying to create a custom GDBDebugger for a C/C++ Application Debug Configuration.
In my plugin I have added an extension:

<extension point="org.eclipse.cdt.debug.core.CDebugger">
   <debugger
      platform="*"
      name="OSE GDB Debugger"
      mode="run,core,attach"
      cpu="*"
      class="com.ose.fmd.cdt.cdi.gdb.processes.GDBDebugger"
      id="org.eclipse.cdt.debug.mi.core.CDebuggerNew"
   </debugger>
</extension>


My GDBDebugger class:

public class GDBDebugger implements ICDIDebugger2
{
   public ICDISession createDebuggerSession(ILaunch launch, IBinaryObject exe,  IProgressMonitor monitor) throws CoreException
   {
     System.out.println("MyGDBDebugger: createDebuggerSession");
     return createSession(launch, exe.getPath().toFile(), monitor);
   }

   public ICDISession createSession(ILaunch launch, File executable, IProgressMonitor monitor) throws CoreException
   {
      System.out.println("My GDBDebugger: createSession");
      return null;
   }
}


The createSession() and createGDBSession() within my GDBDebugger class should be run, but instead the ones within the AbstractGDBCDIDebugger class are executed.

I've only got it working once or twice, so I thought it might be related to workspace runtime data and settings. I've tried cleaning both eclipse by running with -clean flag and I've also checked the "Clear the configuration area before launching" option under the Configuration tab within the Run Configuration. However, this does not work. Following the steps for the previous successful launches does not work either.

Does anyone have any ideas how to solve this problem? Thanks in advance!
Re: CDebugger Extension Does Not Load [message #1073746 is a reply to message #1073286] Thu, 25 July 2013 12:20 Go to previous message
Alvaro Sanchez-Leon is currently offline Alvaro Sanchez-LeonFriend
Messages: 9
Registered: January 2010
Junior Member
The following references are helpful when extending the DSF-GDB debugger
(in case you would like to switch from the CDI debugger)

/Alvaro

[1] http://wiki.eclipse.org/CDT/cdt-debug-dsf-gdb-extensibility
[2] http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg26062.html


Previous Topic:Indexer issue with templates that use templates
Next Topic:[SOLVED] CDT Managed Build Setting Entry Include Paths
Goto Forum:
  


Current Time: Wed Apr 24 21:39:14 GMT 2024

Powered by FUDForum. Page generated in 0.02991 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top