User forums > Nightly builds
The 25 August 2012 build (8248) is out.
p2rkw:
@Agetian: I debug your code on linux, and everything was fine (gdb 7.4, gcc 4.7). I see you have two compilers paths in your PATH variable, please make sure that you use correct one (did you disable all optimizations? ), and rebuild project.
-----
I have other problem with debugger. I changed terminal emulator from xterm to xfce-terminal, here's how c::b invoke it: "terminal -T $TITLE -x" (no quotes). I can run console project and it works fine, but when I start debugging gdb can't open terminal:
--- Quote ---[debug]>>>>>>cb_gdb:
Can't launch console (terminal -T 'Program Console' -x sleep 80001818)
[debug]> run
[debug]Hello Test
--- End quote ---
"Hello Test" is output from my application.
How can I check how debugger invokes terminal?
Agetian:
--- Quote from: p2rkw on August 30, 2012, 12:17:39 am ---@Agetian: I debug your code on linux, and everything was fine (gdb 7.4, gcc 4.7). I see you have two compilers paths in your PATH variable, please make sure that you use correct one (did you disable all optimizations? ), and rebuild project.
--- End quote ---
I took the old compiler out of the path and made sure everything was correct as far as disabling optimizations go (and enabling debugging symbols), as well as cleaned and rebuilt the project afterwards, but it still doesn't work correctly with v4.7.1 - however, it looks like for some reason, that the mingw version I'm using doesn't produce enough debug information - I don't know why, I'm not that great with gcc/gdb yet, but the file size generated with the v4.7.1 build I'm using is only 90kb (in debug mode with -g and with no optimizations flags set), while switching back to v4.6.1 makes it bigger than a megabyte. :\ The options are exactly the same, -g is set and none of the -O or other optimization flags is set. Thanks for your desire to help!
stefanos_:
To whom it may concern, on my Linux Debian wheezy machine I had to modify two files, Makefile.am and configure.in to make it compile.
Makefile.am
--- Code: ------ /svn_code/CodeBlocks/Makefile.am (revision 8281)
+++ /svn_code/CodeBlocks/Makefile.am (working copy)
@@ -12,6 +12,8 @@
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = codeblocks.pc
+ACLOCAL_AMFLAGS = -I m4
+
EXTRA_DIST = $(top_srcdir)/bootstrap \
codeblocks.spec \
codeblocks.plist \
--- End code ---
configure.in
--- Code: ---Index: /home/stefanos/svn_code/CodeBlocks/configure.in
===================================================================
--- /svn_code/CodeBlocks/configure.in (revision 8281)
+++ /svn_code/CodeBlocks/configure.in (working copy)
@@ -7,6 +7,9 @@
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip])
+
+AC_CONFIG_MACRO_DIR([m4])
+
AC_CONFIG_HEADER([src/include/config.h])
CODEBLOCKS_CHECK_DEBUG
--- End code ---
Jens, I think was with you I had a conversation about it in a nightly version?
headkase:
--- Code: ---#include <iostream>
using namespace std;
int main()
{
string s = "Test";
cout << s << endl;
return 0;
}
--- End code ---
Regarding this, I'm also using MinGWBuilds 4.7.1 32-bit building with Code::Blocks 8248. I entered the above code, set a breakpoint on "return 0" Tried a watch on the variable "s" and I got the message: "Cannot evaluate function -- may be inlined" No crashes, I can resume the debugger and program after attempting to check the s variable. Other variables, like int x, I can get the proper values out of. Tried putting a "#include <string>" at the beginning of the file, tried initializing the string like "string s("Test");", no dice.
stefanos_:
Currently successfully compiled Code::Blocks 2.9.x, SVN-8299 on Windows XP SP3 with TDM's GCC latest version available.
Unfortunately though it crashes as soon as you call it. You can see from the attached photo the reason of crash.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version