Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: courage on February 19, 2007, 04:11:48 am

Title: A problem with gdb 5.2.1 in win32
Post by: courage on February 19, 2007, 04:11:48 am
Hello:

I write a little tool for sequentially copying a directory, but it's not the point. :D
The point is when I set the breakpoint at
DirList.cpp:47(inner the member fn DirList::wxDirTraverserDirs::OnDir(const wxString& dirname)),
and added a watch for param "dirname", then gdb crashed.

GDB crashing happened with C::B, but not with eclipse,
so I guess it was maybe a bug of C::B.

My environment is win xp sp2, using MinGW(GCC 4.1.1), gdb 5.2.1.
you can download the tool for testing here:
http://home.kimo.com.tw/ctm2006ctm2006/wxCpDir.7z

Thanks for concerned about my report.  :)
Title: Re: A problem with gdb 5.2.1 in win32
Post by: stahta01 on February 19, 2007, 04:28:31 am
Have you tried gdb 6.x because I don't think Code::Blocks supports gdb 5.x.
( A post I read in December mentioned that a change was going to break the unofficial support of gdb 5.x; the changed to full path names for GCC & GDB.)

Also, what version and/or SVN of Code::Blocks are you using?

The wiki only shows gdb 6.x versions used.
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Windows

Tim S
Title: Re: A problem with gdb 5.2.1 in win32
Post by: courage on February 19, 2007, 05:26:52 am
Hi stahta01:

That is so..Thanks for your help.
When I change to using gdb 6.3.2, it may not crash. :D

I think this problem may cofuse some beginner with Code::Blocks,
because Mingw official download page also put the link of gdb 5.2.1.

I always use the newest nightly builds of Code::Blocks.
Thanks.