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: [RFA 2/5] New port: CR16: Handle cr16*-*-*linux and cr16*-*-* in configure.tgt


> 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


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