Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » CDebugger Extension Does Not Load
CDebugger Extension Does Not Load [message #1073286] Wed, 24 July 2013 09:17 Go to next message
Eclipse UserFriend
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 08:20 Go to previous message
Eclipse UserFriend
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: Tue May 20 22:31:19 EDT 2025

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

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

Back to the top