News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Patch for support 'step in' and 'step out' when use CDB

Started by Loaden, March 27, 2010, 05:32:40 PM

Previous topic - Next topic

Loaden

Hi, I make a patch for support 'step in' and 'step out', when use CDB debugger.
Now, it's works well. :D

Index: src/plugins/debuggergdb/cdb_driver.cpp
===================================================================
--- src/plugins/debuggergdb/cdb_driver.cpp (revision 6196)
+++ src/plugins/debuggergdb/cdb_driver.cpp (working copy)
@@ -147,14 +147,15 @@
void CDB_driver::StepIn()
{
     ResetCursor();
-//    QueueCommand(new DebuggerCmd(this, _T("step")));
-    NOT_IMPLEMENTED();
+    QueueCommand(new DebuggerCmd(this, _T("t")));
+    Step();
}

void CDB_driver::StepOut()
{
     ResetCursor();
-    NOT_IMPLEMENTED();
+    QueueCommand(new DebuggerCmd(this, _T("gu")));
+    Step();
}

void CDB_driver::Backtrace()



[attachment deleted by admin]

killerbot


MortenMacFly

Quote from: killerbot on March 27, 2010, 07:50:29 PM
Martin, will you apply this already ??
I am not sure. CDB has changed a lot recently. I don't know if this works reliable with all CDB's provided with the major Windows SDK's (XP/Vista/7/ServerXXX).

In addition it should be done in the debugger branch as this will be the next step when it comes to the debugger upgrades. If you mean that I should apply it in this branch, then I am happy to do this after checking back with obfuscated.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Loaden

I test this use VC9 and VC10, pass all when use the latest version of WinDbg.
CDB(WinDbg) is very stable, I think the other versions will be able to work too.