project-navigation
Personal tools

Author Topic: gdb ???  (Read 6230 times)

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
gdb ???
« on: January 16, 2010, 01:16:15 pm »
I just spent 2 hours DLing (at 10-20 kBit in a WI-FI bar where the beer is twice as expensive) the current codeblocks.zip from ninex, only to find that it also does NOT contain gdb.exe !! *grumbles*
Or m I blind ?
 

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: gdb ???
« Reply #1 on: January 16, 2010, 01:43:57 pm »
good question - i don't have one here, but http://ufoai.svn.sourceforge.net/viewvc/ufoai/ufoai/trunk/contrib/scripts/codeblocks.sh?revision=28022&view=markup contains the link if you want to download it manually.

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: gdb ???
« Reply #2 on: January 16, 2010, 03:05:35 pm »
good question - i don't have one here,
Uhm.. what do you use as a debugger ? Does eclipse bring it's own debugger ?
Anything else I could offer C::B as a debugger which is already included in codeblocks.zip ?
As I lined out above, DLing is hard for me these days...

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: gdb ???
« Reply #3 on: January 16, 2010, 03:19:15 pm »
i don't think so - if gdb is not included, c::b can't debug

i'm using linux, not windows - that's why i don't use the package.


btw. you got mail

Offline Destructavator

  • Combination Multiple Specialty Developer
  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1908
  • Creater of Scorchcrafter, knows the zarakites...
    • View Profile
Re: gdb ???
« Reply #4 on: January 16, 2010, 05:15:01 pm »
If you hunt around in other sourceforge projects and elsewhere on the net, you can find pre-compiled gdb that you can download, some are kept up-to-date more than others.

IIRC it is also included in the last (somewhat old) official C::B release package, the one that includes the older version of MinGW, but that is probably an old version of gdb.

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: gdb ???
« Reply #5 on: January 17, 2010, 11:05:10 am »
@Mattn:
The comment you mentioned in your mail was a 'leftover' and is removed by now.

If you hunt around ...
My point is that if we declare C::B the official IDE and offer a C::B package to DL, it *must* contain gdb imho, or it is only half-complete (highly unprofessional).
I'm by now rather deeply involved in the project, but if 2-3 events of the above kind would have been by first experiences with this (or any other) project, it would probably have scared me away.

Well, maybe I'm just not 'geeky' enough, but so may be several others...

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: gdb ???
« Reply #6 on: January 17, 2010, 11:08:01 am »
i will try to upload an updated package and check that gdb is included there - the problem is, that i can't test the package, as i'm not having a windows machine here

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: gdb ???
« Reply #7 on: January 17, 2010, 11:30:34 am »
I volunteer to test the package regarding gdb. What else can I do ...;)

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: gdb ???
« Reply #8 on: January 17, 2010, 11:58:31 am »

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: gdb ???
« Reply #9 on: January 19, 2010, 04:11:54 pm »
Thx for the new package :)

DLed it, installed it, compiled and got (among others):
Code: [Select]
C:\ufoai\src\game\../shared/shared.h:35:19: error: errno.h: No such file or directory
C:\ufoai\src\game\../shared/shared.h:36:20: error: assert.h: No such file or directory
C:\ufoai\src\game\../shared/shared.h:37:18: error: math.h: No such file or directory
C:\ufoai\src\game\../shared/shared.h:38:19: error: stdio.h: No such file or directory
C:\ufoai\src\game\../shared/shared.h:40:20: error: string.h: No such file or directory
C:\ufoai\src\game\../shared/shared.h:41:20: error: stdlib.h: No such file or directory
C:\ufoai\src\game\../shared/shared.h:42:18: error: time.h: No such file or directory
C:\ufoai\src\game\../shared/shared.h:43:19: error: ctype.h: No such file or directory

Don't you have some sort of procedure that builds the package ?

Next I'll try to install the old pkg and just add gdb.exe from the new one.

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: gdb ???
« Reply #10 on: January 19, 2010, 04:42:07 pm »
That seems to work. At least I can debug again :)

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: gdb ???
« Reply #11 on: January 19, 2010, 05:06:57 pm »
Don't you have some sort of procedure that builds the package ?

yes - contrib/scripts/codeblocks.sh - you should be able to run this script via mingw, too ;)

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: gdb ???
« Reply #12 on: January 19, 2010, 05:54:35 pm »
If it is a script....how can it miss those errno.h etc, ??

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: gdb ???
« Reply #13 on: January 19, 2010, 07:32:20 pm »
because libxml is "wrongly" extracted

MinGW\include\libxml2\libxml\*.h
and not
MinGW\include\libxml\*.h

and i miss include\sys\*.h
dont know if this is realy needed

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: gdb ???
« Reply #14 on: January 19, 2010, 08:11:37 pm »
If it is a script....how can it miss those errno.h etc, ??

because no windows user fixed it yet ;)