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

Re: [RFA] New target am33-linux (mn10300)


   Date: Fri, 29 Apr 2005 17:49:15 -0700
   From: Michael Snyder <msnyder@sonic.net>

   This is an embedded linux target for am33 (mn10300).  The rest of
   the toolchain (gcc, binutils) has already been contributed.  This
   bit has been languishing untended for a while.

And is well past its "best before" date by now :-(.

It uses DEPRECATED_TM_FILE, and we're not allowd to check in anything
new that uses it.  Unfortunately, this means you can only check this
in without working shared library stuff.  Personally I think we should
allow "DEPRECATED_TM_FILE= solib.h" until the shared libarry stuff is
properly fixed.  Anyway, you seem to have left out the tm-linux.h that
you reference.

But what's worse is that this uses deprecated_add_core_fns, for which
we have an alternative.  Please implement
xxx_regset_from_core_section() and the associated register sets.
While you're at it, I think it is a good idea to get rid of the
ELF_XXX and elf_xxx defines and typedefs you copied from
<asm-mn10300/elf.h>.  These tend to leak into the namespace on Linux
systems and might cause problems.  If you define a sensible register
set, you'll only need these constants once, so you don't really need
these types.

By the time you've done this, I might have eliminated the need fro
DEPRECATED_TM_FILE.

Mark

   2005-04-29  Michael Snyder  <msnyder@redhat.com>

	   * mn10300-linux-tdep.c: New file.
	   * Makefile.in: Add rule for mn10300-linux-tdep.o.
	   * configure.tgt: Add rule for am33 / mn10300-linux.
	   * mn10300-tdep.h: Add E_FPCR_REGNUM, E_FS0_REGNUM.


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