News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

SDK events

Started by electrolot, November 30, 2008, 05:20:45 PM

Previous topic - Next topic

electrolot

I try to add new events to debugger in my plugin. I write code like below:

  Manager* pm = Manager::Get();
  pm->RegisterEventSink(cbEVT_DEBUGGER_STARTED, new cbEventFunctor<myplugin, CodeBlocksEvent>(this, &myplugin::testevents));
  pm->RegisterEventSink(cbEVT_DEBUGGER_PAUSED, new cbEventFunctor<myplugin, CodeBlocksEvent>(this, &myplugin::testevents));
  pm->RegisterEventSink(cbEVT_DEBUGGER_FINISHED, new cbEventFunctor<myplugin, CodeBlocksEvent>(this, &myplugin::testevents));

...


void myplugin::testevents(CodeBlocksEvent &event)
{

  Manager::Get()->GetLogManager()->DebugLog(_("text"));
  wxMessageBox(_T("text"), _T("Warning"), wxOK);
}


When I build and install my plugin nothing happen.

Looks like this events are not implemented.

When I write this same code with cbEVT_EDITOR_OPEN. It's works but only partly. MessageBox appear but DebugLog does not works.

martind

Hi Electrolot,

Last time I checked, these were not implemented. I have a patched the debugger plugin, and dispatch them from in there.
I am working on an OpenOCD plugin, which is nearly ready for release.

I will send this soon.

Martin.

electrolot

Hi Martin,

It's nice to hear that your plugin is nearly ready. I use OpenOCD too.
I'm waiting for your plugin. Please let know on Embedded forum when you finish.

When will you share your debugger plugin patch? I think that it should be added to C::B source code.


martind