This is the mail archive of the gdb-patches@sourceware.org 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]

Re: [PATCH] Add OSE operating system support [1/5] ose core format support of bfd


This patch adds the initial support for OSE core dumps.  The file
format is based on the IFF format <http://www.martinreddy.net/gfx/2d/IFF.txt>,
by Electronic Arts.  The EA guys were helpful and wrote a reference
IFF reader and placed it in the public domain.  Googling around,
it appears everyone based their readers on that code, so, we do too.
That code was originally written for the Amiga though, and isn't
the cleanest code around (not exactly library ready), so I ended up
importing what we needed into the bfd ose core backend implementation file,
massaging it to work with bfds, and fixing a couple of bugs, and adjusting
the formating/symbol names to make it sit nicely in the bfd mix.

So, the ose-core.c file contains both the core IFF reader, and, the
OSE PMD file parser, which uses the "generic" reader, to read a
core following the PMD file's grammar.

Thanks,
Hui

2013-03-08  Pedro Alves  <pedro@codesourcery.com>
	    Luis Machado  <lgustavo@codesourcery.com>

	* Makefile.am (BFD32_BACKENDS): Add ose-core.lo.
	(BFD32_BACKENDS_CFILES): Add ose-core.c.
	* bfd-in2.h (bfd): Add ose_core_data.
	* bfd.c (bfd): Ditto.
	* config.bfd: Add ose_core_big_vec and ose_core_little_vec.
	* configure: Ditto.
	* configure.in: Ditto.
	* ose-core.c: New.
	* targets.c: Add ose_core_big_vec and ose_core_little_vec.

On 03/05/13 17:57, Hui Zhu wrote:
Hi,

OSE's core file format is different compared to Linux, so there is patch for bfd to handle this format.

Thanks,
Hui

2013-03-05 Luis Machado <lgustavo@codesourcery.com>

     * Makefile.am (BFD32_BACKENDS): Add ose-core.lo.
     (BFD32_BACKENDS_CFILES): Add ose-core.c.
     * bfd-in2.h (bfd): Add ose_core_data.
     * bfd.c (bfd): Ditto.
     * config.bfd: Add ose_core_big_vec and ose_core_little_vec.
     * configure: Ditto.
     * configure.in: Ditto.
     * ose-core.c: New.
     * targets.c: Add ose_core_big_vec and ose_core_little_vec.


Attachment: ose_bfd.txt
Description: Text document


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