Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

how to modify the plugin debugger

<< < (2/3) > >>

jibimily:
thank you.
I tried the remote debug ,but the remote debug has some problem. The gdbserver running on remote machine shows :

Remote debugging from host 192.168.1.190
readchar: Got EOF
Remote side has terminated connection.  GDBserver will reopen the connection.

Then I have seen the source code of debuggergdb of C::B 10.05. But it's not easy to understand. I found that All of the operations will set string to m_Cmd and execute CurrentCommand()->Action(). But I do not found where the "Action()"  is.

May I know that if there have any code structure graph or interpretation for the code?

oBFusCATed:
Does remote debugging works, when you use command line gdb?
Also try a debugger's branch nightly, there the remote debugging was improved a bit.
Here is a link for the latest version for that branch: http://forums.codeblocks.org/index.php/topic,14470.0.html

jibimily:
It can works when I use gdb command line with mingw out of CB.
could you explain the "wxString m_Cmd" in class DebuggerCmd. I found every operation would put a special string to m_Cmd, could you show me the pattern or format of m_Cmd that how it works.

oBFusCATed:
m_Cmd stores the raw gdb command that needs to be executed, simple as that...
Read the gdb docs for more details.

jibimily:
okey.Thanks very much for your help.
Now I more clearly known the code. I think I can join the plugin developer to contributie my idea soon after.

there is a small problem:
for example,when i click the step button, the execution flow of the code is :

DebuggerGDB::OnStep(),
DebuggerGDB::Step(),
DebuggerGDB::RunCommand(),
GDB_driver::Step(),
DebuggerDriver::QueueCommand(),
DebuggerDriver::RunQueue(),
DebuggerCmd:Action()

is it right?
but I do not find where the triquetrous flag on GUI changed, which is the same as the bookmark indicating the current debug running line.For example, I click "Next Line" button, it will indicate the next line. IF I click the "Continue" button, it will go to the next breakpoint line.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version