Author Topic: Splitting debugger in two - specific debugger and common GUI  (Read 431390 times)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #255 on: September 16, 2010, 12:01:59 am »
Another stable patch: http://smrt.is-a-geek.org/codeblocks/patches/dbg/dbg_refactor0016.7.1.patch

All changes from the previous patch plus:
4. Fixed the examine memory parser problem described here: http://forums.codeblocks.org/index.php/topic,13273.new.html
5. Replaced \\t with \t, because it seems that wxRegEx doesn't support '\\t' by default, wxRE_ADVANCED should be used
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #257 on: September 16, 2010, 08:43:43 am »
Yes, the patches has duplicate changes, if you remove the duplicates it should apply :)
If not I'll fix it tonight...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #258 on: September 17, 2010, 02:29:50 am »
Next stable patch: http://smrt.is-a-geek.org/codeblocks/patches/dbg/dbg_refactor0016.8.patch

1. Added UpdateUI event for the controls used for sending commands to debugger.
2. Commands send from the normal log ("Debugger") print their result to both logs.
3. Some cleaning

Please test
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline cbexaminr

  • Multiple posting newcomer
  • *
  • Posts: 104
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #259 on: September 17, 2010, 08:29:23 pm »
Is there currently a debugging step capability within something like the disassembly window?

If not, do you have any plans, or know if others do, to add one?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #260 on: September 17, 2010, 08:42:05 pm »
Have you tried the "next instruction" and the new "step into instruction" commands?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline cbexaminr

  • Multiple posting newcomer
  • *
  • Posts: 104
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #261 on: September 18, 2010, 01:27:09 am »
No - hadn't taken note of those.  Maybe because when I use them (I might have tried them before), while stepping does seem to occur, and I see the related actions in the Debugger (debug) log panel, I don't see any results anywhere else.

Is there some visual tracking of the process available outside of the log panel?  If so, where, how activated?  (I've looked at the Debug disassembly window, and it doesn't seem to be tracking anything there.)

Thanks.
« Last Edit: September 18, 2010, 02:24:16 am by cbexaminr »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #262 on: September 18, 2010, 02:46:56 am »
Is there some visual tracking of the process available outside of the log panel?  If so, where, how activated?  (I've looked at the Debug disassembly window, and it doesn't seem to be tracking anything there.)
You've to see the same yellow arrow in the Disassembly window, as with the normal editor.

If you don't see it, please post details in this thread: http://forums.codeblocks.org/index.php/topic,12873.new.html
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline cbexaminr

  • Multiple posting newcomer
  • *
  • Posts: 104
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #263 on: September 18, 2010, 05:28:07 am »
If you don't see it, please post details in this thread: http://forums.codeblocks.org/index.php/topic,12873.new.html
didn't see it.
observations posted.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #264 on: September 19, 2010, 09:42:12 pm »
Morten:
this change is wrong, please revert it:

Code
obfuscated@xlad ~/projects/codeblocks/brances/wxpropgrid_debugger $ svn diff -r PREV:HEAD src/sdk/loggers.cpp 
Index: src/sdk/loggers.cpp
===================================================================
--- src/sdk/loggers.cpp (revision 6605)
+++ src/sdk/loggers.cpp (revision 6608)
@@ -103,7 +104,6 @@
 
     style[success].SetTextColour(BlendTextColour(*wxBLUE));
 
-    style[warning].SetTextColour(BlendTextColour(*wxBLUE));
     style[warning].SetFont(italic_font);
 
     style[error].SetFont(bold_font);
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #265 on: September 20, 2010, 07:09:41 am »
this change is wrong, please revert it:
Code
-    style[warning].SetTextColour(BlendTextColour(*wxBLUE));
     style[warning].SetFont(italic_font);
It's not applied anyways in the debugger branch's HEAD. :-)
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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #266 on: September 20, 2010, 09:21:23 am »
It was applied...  :?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #267 on: September 20, 2010, 09:25:22 am »
It was applied...  :?
It was removed during the merge... Probably not on purpose, but it's OK as it seems. :-)
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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #268 on: September 20, 2010, 10:54:10 am »
It was removed during the merge... Probably not on purpose, but it's OK as it seems. :-)
I've added the change because in the gdb_mi plugin it was not OK, I don't know why.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline cbexaminr

  • Multiple posting newcomer
  • *
  • Posts: 104
Re: Splitting debugger in two - specific debugger and common GUI
« Reply #269 on: September 20, 2010, 06:20:01 pm »
Obfusc, have you overlooked:
http://forums.codeblocks.org/index.php/topic,12501.msg89687.html#msg89687

or just not had time, or (relatively sufficient) interest?