User forums > Help

[solved] problem with debugging in CB 10.05 for Windows

<< < (2/2)

cbuser2:
From the wiki: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks#Use_32bit_CDB_for_32bit_programs_and_64bit_CDB_for_64bit_programs

"It seems that debugging a 32bit program with 64bit CDB doesn't work on Windows 7, but 32bit CDB works perfectly."

If I write a program in CB(in 64 bit Windows 7), is the program 32 bit or 64 bit?

stahta01:

--- Quote from: cbuser2 on October 23, 2012, 06:29:40 am ---If I write a program in CB(in 64 bit Windows 7), is the program 32 bit or 64 bit?

--- End quote ---

Depends on the Compiler and the options given to the Compiler.

Tim S.

Martin K.:

--- Quote from: cbuser2 on October 23, 2012, 06:29:40 am ---From the wiki: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks#Use_32bit_CDB_for_32bit_programs_and_64bit_CDB_for_64bit_programs

"It seems that debugging a 32bit program with 64bit CDB doesn't work on Windows 7, but 32bit CDB works perfectly."

If I write a program in CB(in 64 bit Windows 7), is the program 32 bit or 64 bit?

--- End quote ---

It seems that you are using gcc to compile your programm, so you have to use gdb to debug it.
Your log shows no -g flag for the linker.

Martin

zabzonk:

--- Quote ---Your log shows no -g flag for the linker.

--- End quote ---

Possibly because none is required.

cbuser2:
Well, I just installed the 12.11 nightly: http://forums.codeblocks.org/index.php/topic,17070.0.html

And the debugging works fine now. Also installed the TDM-GCC compiler suite for Windows(32-bit(64-bit is experimental)), which includes the gcc and gdb(debugger): http://tdm-gcc.tdragon.net/

Thanks for all the replies. :)

Navigation

[0] Message Index

[*] Previous page

Go to full version