Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] Embedded toolsets

I have tried adding other debugger entries (and I have kept
plugin.properties matching the name field) but I can not get the changes
I make to plugin.xml to be reflected in the debugger drop down in the
launchers debugger tab. Whatever I do the list remains stubbornly empty
- it does not even contain the GDB Debugger that the box has selected
let alone the Cygwin entry or my Palm one.

Because the extension model at the moment is go in and make it do what you want by changing or cloning org.eclipse.cdt classes rather than use extension points, I've been all through this. Here's what you should try:

Check the result of the cpu return in method loadDebuggerComboBox in org.eclipse.cdt.launch.ui.CDebuggerTab. It's set to programCPU in the line:

programCPU = bin.getCPU();

There is a reasonable chance it's not coming back native and you need to set your debugger platform differently. The Elf.java decoding is reasonably uptodate, but is missing some magic elf tags. If you are using ARM or 68k you are probably fine. If you are using the TI side of OMAP you may have to add something in Elf.java so that it recognizes your target output format.

Here's our plugin.xml.

   <extension
         point="org.eclipse.cdt.debug.ui.CDebuggerPage">
      <debugPage
            class="com.tensilica.xide.core.ui.XtensaDebuggerPage"
            id="com.tensilica.xide.core.ui.CDebuggerPage"
            debuggerID="com.tensilica.xide.core.CDebugger">
      </debugPage>
   </extension>
   <extension
         point="org.eclipse.cdt.debug.core.CDebugger">
      <debugger
            platform="native"
            name="GDB for Xtensa"
            modes="run,core,attach"
            cpu="xtensa"
            class="com.tensilica.xide.cdt.XtensaGDBDebugger"
            id="com.tensilica.xide.core.CDebugger">
      </debugger>
   </extension>


That should get your panel up there and your gdb fired up. At least it did for me. If you don't need anything else special you should be set.

There's something with the platform and elf parsing too, I have not investigated yet.

Thanks!
-Chris

Back to the top