Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Zingam on August 27, 2006, 07:35:08 am

Title: GDB for Windows
Post by: Zingam 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?
Title: Re: GDB for Windows
Post by: killerbot on August 27, 2006, 09:17:37 am
we use the MinGW port: www.mingw.org, search the wiki on how to install it.
Title: Re: GDB for Windows
Post by: takeshi miya on August 27, 2006, 09:35:50 am
It comes in an installer: http://prdownloads.sf.net/mingw/gdb-6.3-2.exe?download
Title: Re: GDB for Windows
Post by: Zingam on August 28, 2006, 07:48:13 am
Well, I really want GDB 6.5
Title: Re: GDB for Windows
Post by: bigbug on August 28, 2006, 08:42:03 am
I think you should try to compile it under the MinGW-MSYS (http://mingw.org/msys.shtml) environment.
Title: Re: GDB for Windows
Post by: mandrav 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?