This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2] gdb: bfin: new port
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: gdb-patches at sourceware dot org, toolchain-devel at blackfin dot uclinux dot org, Jie Zhang <jie dot zhang at analog dot com>
- Date: Tue, 14 Dec 2010 10:02:47 +0400
- Subject: Re: [PATCH v2] gdb: bfin: new port
- References: <1291886957-12003-1-git-send-email-vapier@gentoo.org>
> 2010-11-16 Jie Zhang <jie.zhang@analog.com>
>
> * Makefile.in (ALLDEPFILES): Add bfin-tdep.c.
> (HFILES_NO_SRCDIR): Add bfin-tdep.h.
(ALL_TARGET_OBS): Add bfin-tdep.o
> * NEWS: Mention new Blackfin port.
> * bfin-tdep.c, bfin-tdep.h, config/bfin/bfin.mt: New files.
> * configure.tgt (bfin-*-*): Handle bfin targets.
The syscall file is also missing.
There are a couple of nits, highlighted below. But the patch is
pre-approved with those nits fixed as suggested. One little issue,
though: Please make sure that Eli reviews the change in the NEWS
file before checking in that part of the patch (it can be done
separately).
> +#ifdef _DEBUG
> + fprintf (stderr, "frameless pc case base %x\n", cache->base);
> +#endif
You forgot to remove the #ifdef DEBUG block...
> +/* Return the Blackfin ABI associated with GDBARCH. */
> +static inline enum bfin_abi
> +bfin_abi (struct gdbarch *gdbarch)
> +{
> + return gdbarch_tdep (gdbarch)->bfin_abi;
> +}
Please define that function in bfin-tdep.c, and put a declaration in
bfin-tdep.h instead.
--
Joel