This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: debug information
- To: kenny dot liew at quantel dot com
- Subject: Re: debug information
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: 23 Jun 2000 15:03:23 -0700
- CC: bug-gcc at gnu dot org
- References: <80256907.003177DE.00.cygnus.bug-gcc@buffer1.HQ.quantel>
kenny.liew@quantel.com writes:
> I've tried to include debug information in the file generated in the linker, with the format
> "OUTPUT(output.bin coff-arm-little)" for Strongarm target.
> The problem is, when I tried to include the debug information in the file, by doing objcopy, an
> error came out saying:
> "don't know how to write debugging information for binary".
> This appears to be the same for all formats supported (arm),e.g. srecord, hex etc, which i find a
> bit puzzling.
>
> Out of my wits, I'm not sure if it's the linker. Please advise.
The error message is correct. srecord and hex don't have any way to
represent debugging information.
You probably don't really want to download debugging information to
your board, anyway. Intead you want to use gdb on the local machine.
The gdb documentation has examples of how to do this, I think.
--
- Geoffrey Keating <geoffk@cygnus.com>