Author Topic: nightly builds: impossible to debug?  (Read 41429 times)

Offline ASJ

  • Multiple posting newcomer
  • *
  • Posts: 46
nightly builds: impossible to debug?
« 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.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: nightly builds: impossible to debug?
« Reply #1 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
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline ASJ

  • Multiple posting newcomer
  • *
  • Posts: 46
Re: nightly builds: impossible to debug?
« Reply #2 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?

Offline yop

  • Regular
  • ***
  • Posts: 387
Re: nightly builds: impossible to debug?
« Reply #3 on: March 12, 2006, 10:45:40 pm »
Haven't experienced any.
Life would be so much easier if we could just look at the source code.

dllmain

  • Guest
Re: nightly builds: impossible to debug?
« Reply #4 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

sethjackson

  • Guest

dllmain

  • Guest
Re: nightly builds: impossible to debug?
« Reply #6 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.)

sethjackson

  • Guest
Re: nightly builds: impossible to debug?
« Reply #7 on: March 13, 2006, 03:28:32 am »
No problem. Things are hard to find sometimes. I have had the same problem myself. :P

Offline madnut.ua

  • Multiple posting newcomer
  • *
  • Posts: 13
  • something mad...
Re: nightly builds: impossible to debug?
« Reply #8 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  :)

sethjackson

  • Guest
Re: nightly builds: impossible to debug?
« Reply #9 on: March 14, 2006, 06:59:55 pm »
Hmm get newest SVN it should work......

Offline madnut.ua

  • Multiple posting newcomer
  • *
  • Posts: 13
  • something mad...
Re: nightly builds: impossible to debug?
« Reply #10 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...

Offline madnut.ua

  • Multiple posting newcomer
  • *
  • Posts: 13
  • something mad...
Re: nightly builds: impossible to debug?
« Reply #11 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"?

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5514
Re: nightly builds: impossible to debug?
« Reply #12 on: April 21, 2006, 03:59:32 pm »
your gdb says 6.1.1, could try to upgrade to gdb 6.3.x ??

Offline JPlaroche

  • Multiple posting newcomer
  • *
  • Posts: 29
    • OMBREBLEU
Re: nightly builds: impossible to debug?
« Reply #13 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
chef de projet MASTER (AS400  RPGILE  C   and SYTEM)

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

Offline JPlaroche

  • Multiple posting newcomer
  • *
  • Posts: 29
    • OMBREBLEU
Re: nightly builds: impossible to debug?
« Reply #14 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
« Last Edit: April 21, 2006, 06:41:35 pm by JPlaroche »
chef de projet MASTER (AS400  RPGILE  C   and SYTEM)

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