This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]