Author Topic: Patch for support 'step in' and 'step out' when use CDB  (Read 8285 times)

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Patch for support 'step in' and 'step out' when use CDB
« on: March 27, 2010, 05:32:40 pm »
Hi, I make a patch for support 'step in' and 'step out', when use CDB debugger.
Now, it's works well. :D

Code
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]

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: Patch for support 'step in' and 'step out' when use CDB
« Reply #1 on: March 27, 2010, 07:50:29 pm »
Martin, will you apply this already ??

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Patch for support 'step in' and 'step out' when use CDB
« Reply #2 on: March 28, 2010, 03:37:23 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Patch for support 'step in' and 'step out' when use CDB
« Reply #3 on: March 29, 2010, 07:23:29 am »
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.