1 #ifndef AVR_BFDPROGRAM_H
2 #define AVR_BFDPROGRAM_H
18 * @brief Support for the BFD library
20 * BfdProgram is an implementation of Program that
21 * reads program files using the BFD library.
22 * BFD allows a number of formats to be read such
25 class BfdProgram
: public Program
{
28 BfdProgram(const char *filename
);
33 * Opens and loads a file.
35 void load(const char * filename
);
38 * Reads the next available section from the file
39 * and returns the data in \e sec.
41 * \returns false if no further sections are available.
43 bool readNextSection(Section
& sec
);
53 inline BfdProgram::BfdProgram() : abfd(0), sec(0) {}
54 inline BfdProgram::BfdProgram(const char *filename
) : abfd(0), sec(0) {
61 #endif /*AVR_BFDPROGRAM_H*/