User forums > Nightly builds

The 11 February 2012 build (7790) DEBUGGER BRANCH version is out.

<< < (10/11) > >>

oBFusCATed:
Aradayn:
I think, I've fixed it. It seems that if I set the size of the dialog, before I add the sub panels to the treebook it doesn't crash.
Please test this patch and report if the problems is really fixed. I'll do some testing under linux and I will commit it after that.


--- Code: ---Index: src/src/debuggersettingsdlg.cpp
===================================================================
--- src/src/debuggersettingsdlg.cpp (revision 7854)
+++ src/src/debuggersettingsdlg.cpp (working copy)
@@ -74,9 +74,11 @@
 
  Connect(ID_TREEBOOK,wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED,(wxObjectEventFunction)&DebuggerSettingsDlg::OnPageChanged);
  //*)
+ SetMinSize(wxSize(600, 600));
+ SetSize(wxSize(600, 600));
 
     m_commonPanel = new DebuggerSettingsCommonPanel(m_treebook);
- m_treebook->AddPage(m_commonPanel, _("Common"));
+ m_treebook->AddPage(m_commonPanel, _("Common"), true);
 
     DebuggerManager::RegisteredPlugins &plugins = Manager::Get()->GetDebuggerManager()->GetAllDebuggers();
     for (DebuggerManager::RegisteredPlugins::iterator it = plugins.begin(); it != plugins.end(); ++it)
@@ -101,9 +103,6 @@
 
     for (size_t ii = 0; ii < m_treebook->GetPageCount(); ++ii)
         m_treebook->ExpandNode(ii);
-
- SetMinSize(wxSize(600, 600));
- SetSize(wxSize(600, 600));
 }
 
 DebuggerSettingsDlg::~DebuggerSettingsDlg()

--- End code ---

Aradayn:
Thanks, oBFusCATed! That seems to have done the trick. I see the full debugger name and it didn't crash.

ricardo:

--- Quote from: oBFusCATed on February 19, 2012, 08:28:31 pm ---
--- 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.

--- End quote ---

I'm not CodeSourcery support, but I suspect that using DOS style line endings triggers the double execution problem exactly as oBFusCATed has laid out above.  Switching to Unix style line endings is the right fix.  Does anyone know if CodeSourcery's GDB is alone in this behavior or if the FSF's GDB also exhibits this behavior?

oBFusCATed:
There is not FSF build of GDB for windows. The mingw one works OK with the native line endings.

ollydbg:

--- Quote from: jens on February 12, 2012, 05:35:06 pm ---Debian packages (binaries and sources) for 32-bit and 64-bit systems can be found in my repo.

If you want to use apt (or dselect, synaptic or whatever) you need to add the following entries to /etc/apt/sources.list :

--- Code: ---deb http://apt.jenslody.de/ any dbg
deb-src http://apt.jenslody.de/ any dbg
--- End code ---
and remove entries for the normal nightlies.

Alternatively you can download the deb's directly from http://apt.jenslody.de/pool/dbg/c/codeblocks/ .

--- End quote ---
Linux newbie. (I'm using Ubuntu 10.04 in a virtualbox under winXP)
I tried the method described here:http://apt.jenslody.de/

I have correctly set the file: /etc/apt/sources.list
Wx library installed/updated correctly.
But when I open the synaptic tool, and type the "codeblocks", I can only see the codeblocks 8.02 from Ubuntu official site. I have tried the alternative way( download many deb files from: http://apt.jenslody.de/pool/dbg/c/codeblocks/, then double click to install them), that not quite convenient way to install the debugger branch.

Any one can give me a hint? :)

I also run the "apt-get clear" and "apt-get update" many times.

Thanks.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version