Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Watches modification
ouille:
Hello,
It will be great if we can modify watches value during a debug session.
Testing the sdk to add this feature, i try to recompile debuggergdb plugins
But i have a link error
--- Quote ---undefined reference :wxdialog::MSWProcessMessage(...)
--- End quote ---
What's wrong in my conf ?
Have a nice day
Ouille
Game_Ender:
Have you looked at the watches script thread below? Maybe an expansion of that concept would be what you want.
ouille:
Hello,
I've look at scripts but it's too complex for me sorry. It seem complex to just modify the value of a watch :(
After managing to get debuggergdb compiling :D, i try to modify On edit watch that way to allow modification of a watch
--- Code: ---void DebuggerTree::OnEditWatch(wxCommandEvent& event)
{
wxString cmd;
wxString item = m_pTree->GetItemText(m_pTree->GetSelection());
wxString w = wxGetTextFromUser(_("Edit watch"), _("Enter New Value:"), item);
cmd << _T("set var ") << item << _T("=") << w;
SendCommand(cmd);
return;
if (!w.IsEmpty())
{
DeleteWatch(item);
AddWatch(w);
}
}
--- End code ---
BUT my c++ courses are far away now, the sendcommand belong to debuggergdb class, is there a simple way to call it from an other class.
I think it's possible, but don't remember how.
Looking forward at the code it seem's that comunication between debuggergdb an other class are uniderectionnal. To modifiy watch i'll to make them working from debuggergdb to debugger tree and backward, is it right ?
Have a nice day
Ouille
mandrav:
Never, ever, use SendCommand(). This is just to pipe a command to the debugger process. It is only to be used by debugger drivers.
Assuming you 're talking gdb here, you have to create a new debugger command inheriting DebuggerCmd and put it inside gdb_commands.h. Look there for examples of how commands are created and what they do. It should be pretty straightforward.
ouille:
Hello,
I just want to pipe a command to the debugger, gdb in fact
sending for example
--- Code: ---set var i=17
--- End code ---
My problem is that i need to send that command from debuggertree class wich manage watch tree class.
I look at debuggercmd.
Bye
Ouille
Navigation
[0] Message Index
[#] Next page
Go to full version