This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 2/5] New port: CR16: Handle cr16*-*-*linux and cr16*-*-* in configure.tgt
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Kaushik Phatak <Kaushik dot Phatak at kpitcummins dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Thu, 4 Oct 2012 07:13:28 -0700
- Subject: Re: [RFA 2/5] New port: CR16: Handle cr16*-*-*linux and cr16*-*-* in configure.tgt
- References: <C6CA53A2A46BA7469348BDBD663AB65845B2FF7C@KCHJEXMB03.kpit.com>
> 2012-10-04 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
>
> gdb/Changelog
> * configure.tgt: Handle cr16*-*-*linux and cr16*-*-*.
>
> --- ./gdb_src.orig/gdb/configure.tgt 2012-08-02 01:18:44.000000000 +0530
> +++ ./gdb_src/gdb/configure.tgt 2012-09-11 14:48:26.000000000 +0530
> @@ -116,6 +116,20 @@ bfin-*-*)
> gdb_sim=../sim/bfin/libsim.a
> ;;
>
> +cr16*-*-*linux)
> + # Target: CR16 processor
> + gdb_target_obs="cr16-tdep.o cr16-linux-tdep.o linux-tdep.o"
> + gdb_sim=../sim/cr16/libsim.a
> + build_gdbserver=yes
> + ;;
> +
> +cr16*-*-*)
> + # Target: CR16 processor
> + gdb_target_obs="cr16-tdep.o"
> + gdb_sim=../sim/cr16/libsim.a
> + build_gdbserver=yes
^^
||
Is that really correct?
Also, I would move the build_gdbserver bits to the gdbserver patch.
Otherwise, if you apply this patch, and try to do build the debugger
natively on a cr16-linux machine, you'll get an error when it tries
to build gdbserver.
--
Joel