News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

nightly builds: impossible to debug?

Started by ASJ, March 12, 2006, 05:18:29 PM

Previous topic - Next topic

ASJ

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:

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.

thomas

That's the problem:
QuoteDebugger name and version: GNU gdb 5.2.1

Use gdb 6.3
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

ASJ

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?

yop

Life would be so much easier if we could just look at the source code.

dllmain

Quote from: thomas on March 12, 2006, 05:46:54 PM
That's the problem:
QuoteDebugger 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



sethjackson

No problem. Things are hard to find sometimes. I have had the same problem myself. :P

madnut.ua

Quote from: 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

I have gdb 6.3-2 under Win32 and 6.1.1 under FreeBSD, but I still have a problem with debugging 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  :)

sethjackson

Hmm get newest SVN it should work......

madnut.ua

Quote from: sethjackson on March 14, 2006, 06:59:55 PM
Hmm get newest SVN it should work......

Thanks,
All ok with new build on FreeBSD :)
on win32 not tested yet...

madnut.ua


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


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

QueueCommand(new DebuggerCmd(this, _T("start")));


Cause all working good after changing command back to "run"
So why need "start"?

killerbot

your gdb says 6.1.1, could try to upgrade to gdb 6.3.x ??

JPlaroche

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
chef de projet MASTER (AS400  RPGILE  C   and SYTEM)

student c++ and wxwidgets for validation acquis (Jean-Pierre) wxformbuilder

JPlaroche

#14
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
chef de projet MASTER (AS400  RPGILE  C   and SYTEM)

student c++ and wxwidgets for validation acquis (Jean-Pierre) wxformbuilder