User forums > Help

Debugging doesn't work any more.

<< < (2/3) > >>

mandrav:

--- Quote from: jarro_2783 on August 28, 2006, 09:45:45 am ---thanks, it worked.
Any idea why they don't have that on their download page?

--- End quote ---

Have what? The link I posted comes from the MinGW download page. It's at the bottom of the page where it says "Snapshot".

jarro_2783:
ok, I missed that. I got it from higher up where it is listed under "current".

Phatency:
I've been having the same problem since last week, and all I've done is install nightlies.
MinGW 5.0.3
 - gcc 3.4.2 (should I get 3.4.5 candidate?)
 - gdb 6.3
CodeBlocks Version 1.0 revision 2918 ()   gcc 3.4.5 Windows/unicode


I created two console application projects (test & test2), and now breakpoints seem to work for these projects (don't know why they didn't work before).

I still get "no source file named x" warnings from all projects with breakpoints which I have opened since codeblocks started (even closed ones!), and I have to open these projects, remove breakpoints, and the warnings are gone.

Simple example with 2 console application -projects both with one breakpoint.

--- Code: ---Building to ensure sources are up-to-date
Build succeeded
Selecting target: Debug
Adding source dir: C:\CodeBlocks\user\temp\test2\
Adding source dir: C:\CodeBlocks\user\temp\test2\
Adding file: .\test2.exe
Starting debugger: done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.3
No source file named C:/CodeBlocks/user/temp/test/main.cpp.
Breakpoint 1 (C:/CodeBlocks/user/temp/test/main.cpp:5) pending.
At C:/CodeBlocks/user/temp/test2/main.cpp:5
Debugger finished with status 0


--- End code ---

Phatency:
I still have these issues after clean-installing gcc 3.4.5 (with gdb 6.3.2). I also have one project in which breakpoints don't work at all, but I haven't found a way to recreate such project. No breakpoints seem to be cleaned after closing a project, so all breakpoints in closed files are still registered to gdb, resulting to "no source file named" errors.

Phatency:
While no one seemed to be interested, I took a few screenshots. Is this really the intended behaviour?

Two console-applications with both one breakpoint:
http://phatency.loota.fi/img/ss/cb_bp.png

Closing the other console-application, re-debugging, breakpoint from the closed project is still listed:
http://phatency.loota.fi/img/ss/cb_bp2.png

edit:
submitted to BerliOS.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version