User forums > General (but related to Code::Blocks)
[OT] MinGW GCC 4.4 released!
ollydbg:
oh, my God, we still can't set breakpoints in header file when debugging in CB :(.
Seems this bug has fixed in TDM-GCC, but still exists in Offical MinGW 4.4.0.
See the description:
https://sourceforge.net/tracker/?func=detail&aid=2145427&group_id=200665&atid=974439
By the way:
Is there any way I can report to Official MinGW dev Team?
or it is already in bug tracker.
stahta01:
--- Quote from: ollydbg on June 24, 2009, 03:44:35 am ---Is there any way I can report to Official MinGW dev Team?
or it is already in bug tracker.
--- End quote ---
Report Bugs directions here: http://www.mingw.org/bugs.shtml
http://sourceforge.net/tracker/?group_id=2435&atid=102435
I have never reported a bug; note submitting a patch is very hard to do right; I tried once.
( A lot of MinGW Code is Public Domain which means you can not submit GPL code in some cases.)
Tim S
ollydbg:
I have reported in MinGW user maillist. Hopefully they can get attention.
By the way:
--- Quote ---Problem setting a breakpoint in a header file.
Steps to demonstrate the problem:
(1) Create and move to directory C:\CB
(2) Create header file Function.h
inline int Fcn1()
{
return 1;
}
(3) Create source file main.cpp
#include "Function.h"
int main()
{
int A = Fcn1();
A *= 2;
return 0;
}
(4) Open a command window
(5) Compile with following (note backslashes in filename as used by CodeBlocks in Windows)
gcc -g C:\CB\main.cpp -o CB.exe
(6) Launch debugger
gdb CB.exe
(7) Try to set breakpoint in header
(gdb) b C:\CB\Function.h:3
and get error
No source file named C:\CB\Function.h in loaded symbols.
(8) Quit debugger, erase CB.exe and recompile with following (note forward slashes)
gcc -g C:/CB/main.cpp -o CB.exe
(9) Launch debugger
gdb CB.exe
(10) Again try to set breakpoint in header
(gdb) b C:\CB\Function.h:3
and this time successfully get
Breakpoint 1 at 0x4017db: file C:/CB/Function.h, line 3.
--- End quote ---
Why not we use "forward slashed" in CB to skip this bug? :D
stahta01:
--- Quote from: killerbot on June 23, 2009, 05:52:44 pm ---AFter using TDM GCC 4.4.0, I will give this one a try, and when I am able to build CB nicely and use it nicely (which I could with TDM GCC 4.4.0) I will switch nightlies to this GCC version.
--- End quote ---
@killerbot
Please look at using this patch if you change the Compiler to 4.4 DW2
https://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=2780&group_id=5358
It creates the exchndl.dll that creates the codeblocks.RPT under windows. The old exchndl.dll only seems to work well with 3.4.5 SJLJ Compiler.
Tim S
Navigation
[0] Message Index
[*] Previous page
Go to full version