User forums > Nightly builds
The 11 February 2012 build (7790) DEBUGGER BRANCH version is out.
oBFusCATed:
Aradayn: Thanks for the tests you've done. I'll see if I can find time to do some more debugging about this problem.
oBFusCATed:
@themaddin:
I've just tested with Codesourcery on windows and it turns out I'm right.
Using SetMode(wxEOL_DOS) fixes the problem.
Can you ask the Codesourcery's support what do they think about this problem?
@devs: Should I add an option to specify the EOL mode or should I try to find another solution?
@Aradayn: Confirmed, using _("GDB") instead of the full name fixes the crash.
Does anyone know what I can do to debug this?
MortenMacFly:
--- Quote from: oBFusCATed on February 19, 2012, 07:51:17 pm ---Using SetMode(wxEOL_DOS) fixes the problem.
[...]
@devs: Should I add an option to specify the EOL mode or should I try to find another solution?
--- End quote ---
I didn't fully understand why and where you want to add this?
oBFusCATed:
--- Code: ---Index: src/sdk/pipedprocess.cpp
===================================================================
--- src/sdk/pipedprocess.cpp (revision 7821)
+++ src/sdk/pipedprocess.cpp (working copy)
@@ -148,6 +148,7 @@
if (pOut)
{
wxTextOutputStream sin(*pOut);
+ sin.SetMode(wxEOL_UNIX);
wxString msg = text + _T('\n');
sin.WriteString(msg);
}
--- End code ---
Here is the patch that makes it work.
The reason is that this version of gdb treats both \n and \m as new command markers.
So using \n\m triggers as two commands:
1. the actual command
2. the re execution of the command, because most debuggers treat empty commands as "repeat-last-command", this is a feature to simplify usage.
MortenMacFly:
--- Quote from: oBFusCATed on February 19, 2012, 08:28:31 pm ---Here is the patch that makes it work.
--- End quote ---
OK - I see. However, this is a very sensible component, so we really should test long(er). Remember your last trial to change this class??? ;-) ;D ;D ;D
I'll apply in my local copy and report back...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version