This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Fixing "Unrecognized File Format"? (I'm desperate for help)
- From: James Sampson <i_am_triumph at ofir dot dk>
- To: GDB Archive <gdb at sources dot redhat dot com>
- Date: Thu, 21 Nov 2002 09:23:43 +0100
- Subject: Fixing "Unrecognized File Format"? (I'm desperate for help)
Howdi
When I use "file a.out" I get "Unrecognized File Format". This is because my
code is target specific, and in a format that the GDB doesn't understand. The
file is a COFF file however, which is supported, but perhaps some variant
which the GDB unfortunately doesn't understand.
I've posted a lot about this here and received help from a couple of good
samaritans, and so far it seems like a big job to get his working. I found
something however, which leads me to believe that I have expressed my problem
incorrectly - See this quote from the following link:
*///////////////////////////////////////////////
When adding support for a new target machine, there are various areas of
support that might need change, or might be OK.
If you are using an existing object file format (a.out or COFF), there is
probably little to be done. See `bfd/doc/bfd.texinfo' for more information on
writing new a.out or COFF versions.
Link: http://css.sfu.ca/nsg/cssnetdocs/doc/gdbint/gdbint_8.html
*///////////////////////////////////////////////
Is the above correct, when my problem is that the GDB doesn't recognize my
a.out?
If some of you have experience in how to do this, I would really appreciate
some help.
Best Regards
J.S.