User forums > Using Code::Blocks
How to create COFF format debug symbols using Code::Blocks and GCC?
oBFusCATed:
--- Quote from: Robert_S on April 21, 2010, 02:56:11 pm ---...."-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?....
--- End quote ---
Switch to compiler that produces .pdb/coff debugging info (Visual C++ for example). Gcc doesn't support this king of debugging symbols.
danselmi:
For WinAVR: avr-objcopy and avr-objdump knows the target options "coff-avr" and "coff-ext-avr".
Try following as a post build step:
--- Code: ---avr-objcopy -O coff-avr -R .eeprom -R .eesafe $(TARGET_OUTPUT_FILE) $(TARGET_OUTPUT_FILE).coff
--- End code ---
(I have not tested the generated coff file!)
dirk_1980:
Why can't you just say das the ELF-File is the debug File and not the AVR-Studio Burner ELF File?
Same name for 2 types of files.
EDIT:
@ danselmi
Were must i write your code in C::B to test it?
danselmi:
Project->Build options... Pre/post build steps
Navigation
[0] Message Index
[*] Previous page
Go to full version