User forums > Using Code::Blocks

How to create COFF format debug symbols using Code::Blocks and GCC?

(1/2) > >>

Robert_S:
I'm using a Windows machine and I want to build a debug release of my program.
I'm using GCC as my compile and I originally had the -g switch enable in the Global compiler settings.

This produces debug symbols in the stab format which is unfortunately of no use to me.  I want to be able to create a COFF format symbol table in the exe file.

How do I do this?  I have tried uncheckin the -g switch and selecting the other options tab were I entered
"-gcoff", I also tried using just "gcoff".  The debug release no longer contains the .stab and .stabstr section but I cannot find any COFF debug symbols.  How do I go about achieving this?

I would also be like to create .pdb files too if this is possible?

Thank you,
               Robert.

 

stahta01:
Code::Blocks is an IDE that supports more than one Compiler!!

Please ask the support group for what ever compiler you use your Compiler Questions!

This is NOT a support site for any Compilers!

Tim S.

Robert_S:
Okay will do, my sincere apologies.

dirk_1980:
@ stahta01
Yes C::B is an IDE but C::B has all the setup stuff to make a Hex-File but not for COFF-Files.

If i use a User Makefile you are right: nothing todo with C::B!
But if i use the C::B settings C::B has to work and this forum is the right place to ask.



I have the same problem with WIN-AVR. i cant make a COFF-File.

Dirk


stahta01:

Turn on full Compiler logging;
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F


The compiler/Linker creates the COFF not C::B.

Tim S.

Navigation

[0] Message Index

[#] Next page

Go to full version