Author Topic: Debugger_gdbmi plugin  (Read 553 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2937
Debugger_gdbmi plugin
« on: Yesterday at 09:49:45 pm »
Installation Guide: Debugger GDB/MI Plugin
A CodeBlocks plugin using the machine interface of the GDB debugger.

Source is available at github Source

Preparation
  • Clone or download a zip
  • Cloning creates a folder named debugger_gdbmi
  • A zip file needs to be unzipped in a 'debugger_gdbmi' folder.


.cbp files included:
  • debugger_gdbmi_wx32_64WK - compiles to the currently active src\devel_32_64 folder.
  • debugger_gdbmi_wx32_64      - compiles to ..\..\..\devel32_64
            (use only when debugger_gdbmi resides within the contrib workspace.
  • debugger_gdbmi_wx32_64Nly - compiles to $(#cb)\devel32_64
            (CodeBlocks will ask you to define the global 'cb' macro to point to CodeBlocks source folder.
  • Note: The other .cbp(s) are defined as if debugger_gdbmi resides within the contrib workspace.
             Move debugger_gdbmi into that workspace or modify the .cbp(s)

Installation
  • Load and compile debugger_gdbmi with the desired .cbp
  • Close CodeBlocks and run src/update32_64
  • You should find debugger_gdbmi.dll in the src\output32_64\share\CodeBlocks\plugins folder
  • You should find debugger.gdbmi.zip in the src\output32_64\share\CodeBlocks folder

Configuration

     After installation, restart CodeBlocks and go to Settings->Debugger->GDB/MI default
  • Set the executable Path to your gdb.exe.
  • Verify the other options meet your requirements.
  • Click on the Ok button.

Usage
    Go to MainMenu->Debug->Active Debuggers and select GDB/MI default.


Report issues in the Help or Plugins Development forum thread with your Build log and OS.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5564
Re: Debugger_gdbmi plugin
« Reply #1 on: Today at 08:03:27 am »
wouldn't we add it to our normal source tree, as a contrib plug-in ?

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2937
Re: Debugger_gdbmi plugin
« Reply #2 on: Today at 05:06:31 pm »
wouldn't we add it to our normal source tree, as a contrib plug-in ?

Yes, but I'm trying to determine if there is any interest in it.
I've found that adding a plugin to the contribs and especially updating autoMake is very painful and error prone.
I'd rather avoid the pain if there's no interest.
« Last Edit: Today at 05:38:45 pm by Pecan »