Code::Blocks Forums

User forums => Nightly builds => Topic started by: ASJ on March 12, 2006, 05:18:29 pm

Title: nightly builds: impossible to debug?
Post by: ASJ on March 12, 2006, 05:18:29 pm
I'am trying a lot of the nightly builds last period of time on my win2k machine using the mingw compilers.
Everything runs smoothly but whenever I compile debug information in and put a breakpoint somewhere I get a message like the following in the debugging pane:
Code
Selecting target: default
Compiling: done
Adding source dir: G:\CodeBlocksProjects\MovieProcessing\trunk\
Adding file: G:\CodeBlocksProjects\MovieProcessing\trunk\MovieProcessing.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 5.2.1
No source file named G:/CodeBlocksProjects/MovieProcessing/trunk/MainFrame.cpp.

and the breakpoint has no influence at all.
Of course this makes sense because I think the filename is to a large extent still in "unix style". Is this a matter of just changing a setting? Do more people encounter this problem?

This same problem I also encountered a couple of times before, but I never managed to fix it so always reurned to RC2 where the debugging is working smoothly as well.
Title: Re: nightly builds: impossible to debug?
Post by: thomas on March 12, 2006, 05:46:54 pm
That's the problem:
Quote
Debugger name and version: GNU gdb 5.2.1

Use gdb 6.3
Title: Re: nightly builds: impossible to debug?
Post by: ASJ on March 12, 2006, 10:37:34 pm
That solves all the problems! Thanks! :D :D :D

Just a small question: gdb 6.3 is a snapshot release. Does this give any nasty problems?
Title: Re: nightly builds: impossible to debug?
Post by: yop on March 12, 2006, 10:45:40 pm
Haven't experienced any.
Title: Re: nightly builds: impossible to debug?
Post by: dllmain on March 13, 2006, 03:02:13 am
That's the problem:
Quote
Debugger name and version: GNU gdb 5.2.1

Use gdb 6.3

I cannot find GDB 6.3 for Win32.
Do you know where to get it?


Thanks in advance, Sebastian
Title: Re: nightly builds: impossible to debug?
Post by: sethjackson on March 13, 2006, 03:04:57 am
http://prdownloads.sourceforge.net/mingw/gdb-6.3-2.exe?download
Title: Re: nightly builds: impossible to debug?
Post by: dllmain on March 13, 2006, 03:25:19 am
http://prdownloads.sourceforge.net/mingw/gdb-6.3-2.exe?download

Thank you!

(I was looking for it at SourceForge but did not look at the snapshot section.)
Title: Re: nightly builds: impossible to debug?
Post by: sethjackson on March 13, 2006, 03:28:32 am
No problem. Things are hard to find sometimes. I have had the same problem myself. :P
Title: Re: nightly builds: impossible to debug?
Post by: madnut.ua on March 14, 2006, 02:06:35 pm
No problem. Things are hard to find sometimes. I have had the same problem myself. :P

I have gdb 6.3-2 under Win32 and 6.1.1 under FreeBSD, but I still have a problem with debugging code...  :(

Code
Starting debugger: done
Invalid debugger script: 'gdb_types.script'
Setting breakpoints
Debugger name and version: GNU gdb 6.1.1 [FreeBSD]
No source file named /usr/home/madnut/src/ode/ode_cvs/src/scan.cpp.
Breakpoint 1 (/usr/home/madnut/src/ode/ode_cvs/src/scan.cpp:988) pending.

p.s. Ukrainian is my native language  :)
Title: Re: nightly builds: impossible to debug?
Post by: sethjackson on March 14, 2006, 06:59:55 pm
Hmm get newest SVN it should work......
Title: Re: nightly builds: impossible to debug?
Post by: madnut.ua on March 15, 2006, 07:44:13 am
Hmm get newest SVN it should work......

Thanks,
All ok with new build on FreeBSD :)
on win32 not tested yet...
Title: Re: nightly builds: impossible to debug?
Post by: madnut.ua on April 21, 2006, 02:57:17 pm

Hi! I have new trouble with debugger under FreeBSD. :) since 2256 revision till last. gdb just freeze and nothing todo after:

Code
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.1.1 [FreeBSD]

I think, that problem is here:
 gdb_driver.cpp, line 199
Code
 QueueCommand(new DebuggerCmd(this, _T("start")));

Cause all working good after changing command back to "run"
So why need "start"?
Title: Re: nightly builds: impossible to debug?
Post by: killerbot on April 21, 2006, 03:59:32 pm
your gdb says 6.1.1, could try to upgrade to gdb 6.3.x ??
Title: Re: nightly builds: impossible to debug?
Post by: JPlaroche on April 21, 2006, 04:46:17 pm
Selecting target: default
Compiling: done
Adding source dir: D:\wxFRAM\
Adding source dir: D:\wxFRAM\
Adding file: Projet.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
Program received signal SIGSEGV, Segmentation fault.
In strlen () (C:\WINDOWS\system32\msvcrt.dll)

help help   is error
Title: Re: nightly builds: impossible to debug?
Post by: JPlaroche on April 21, 2006, 04:57:44 pm
is use new version 20 april 2006

thank you is help for my  :P :shock:


output MZ
No symbol "MZ" in current context.
(gdb)

IS OK dbg 6.3.2

AND TO COMPIL WXWDIGETS 2.6.3 NEW AND PATCH 1
Title: Re: nightly builds: impossible to debug?
Post by: madnut.ua on April 25, 2006, 08:51:17 am
your gdb says 6.1.1, could try to upgrade to gdb 6.3.x ??

Tell me, please, where can I find gdb 6.3.x for FreeBSD? The last in ports collection is 6.1.1
Title: Re: nightly builds: impossible to debug?
Post by: Michael on April 25, 2006, 11:09:01 am
your gdb says 6.1.1, could try to upgrade to gdb 6.3.x ??

Tell me, please, where can I find gdb 6.3.x for FreeBSD? The last in ports collection is 6.1.1

Hello,

You can have a look at here (http://www.gnu.org/software/gdb/).

Try to download the sources and build it by yourself.

This (http://sourceware.org/ml/gdb-patches/2005-08/msg00265.html) could also be helpful.

Best wishes,
Michael