Author Topic: GDB for Windows  (Read 5094 times)

Offline Zingam

  • Multiple posting newcomer
  • *
  • Posts: 74
GDB for Windows
« on: August 27, 2006, 07:35:08 am »
How can I compile and use GDB for Windows with CodeBlock?

Well I have compiled GDB with Cygwin and when I try to debug with CodeBlocks. GDB reports that cygdrive/.... etc directory is missing and doesn't work.

Have you compiled GDB 6.5 for Windows?

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5258
Re: GDB for Windows
« Reply #1 on: August 27, 2006, 09:17:37 am »
we use the MinGW port: www.mingw.org, search the wiki on how to install it.

Offline takeshi miya

  • Lives here!
  • ****
  • Posts: 1487
Re: GDB for Windows
« Reply #2 on: August 27, 2006, 09:35:50 am »

Offline Zingam

  • Multiple posting newcomer
  • *
  • Posts: 74
Re: GDB for Windows
« Reply #3 on: August 28, 2006, 07:48:13 am »
Well, I really want GDB 6.5

Offline bigbug

  • Multiple posting newcomer
  • *
  • Posts: 39
Re: GDB for Windows
« Reply #4 on: August 28, 2006, 08:42:03 am »
I think you should try to compile it under the MinGW-MSYS environment.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4305
    • Code::Blocks IDE
Re: GDB for Windows
« Reply #5 on: August 28, 2006, 09:15:19 am »
Well I have compiled GDB with Cygwin and when I try to debug with CodeBlocks. GDB reports that cygdrive/.... etc directory is missing and doesn't work.

Have you compiled GDB 6.5 for Windows?

Although we have planned to fix this problem, I don't know when it's gonna be fixed.
But, if I 'm not mistaken, couldn't you build gdb with cygwin but pass the -mno-cygwin flag to the compiler?
Be patient!
This bug will be fixed soon...