This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] New GDB Port CR16
- From: Pedro Alves <palves at redhat dot com>
- To: Kaushik Phatak <Kaushik dot Phatak at kpitcummins dot com>
- Cc: Mike Frysinger <vapier at gentoo dot org>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, Yao Qi <yao at codesourcery dot com>
- Date: Mon, 03 Sep 2012 10:30:56 +0100
- Subject: Re: [RFC] New GDB Port CR16
- References: <C6CA53A2A46BA7469348BDBD663AB65845B27868@KCHJEXMB03.kpit.com> <503B9E59.6050502@codesourcery.com> <C6CA53A2A46BA7469348BDBD663AB65845B28084@KCHJEXMB03.kpit.com> <CAJaTeTrp4cCM6-0WybhzQnH_ZDBoa9xDhnW4+QGtaS7Un3Zv=Q@mail.gmail.com> <C6CA53A2A46BA7469348BDBD663AB65845B2866D@KCHJEXMB03.kpit.com>
On 08/30/2012 06:23 AM, Kaushik Phatak wrote:
> --- gdb_src.orig/sim/cr16/interp.c 2012-06-18 05:04:17.000000000 +0530
> +++ ./gdb_src/sim/cr16/interp.c 2012-08-17 15:41:35.000000000 +0530
> @@ -1192,7 +1192,11 @@ sim_resume (SIM_DESC sd, int step, int s
> iaddr = imem_addr ((uint32)PC);
> if (iaddr == State.mem.fault)
> {
> +#ifdef SIGBUS
> State.exception = SIGBUS;
> +#else
> + State.exception = SIGSEGV;
> +#endif
> break;
> }
Is this dependency on host signal defines what is done on other sims?
It rings alarm bells to me that a sim's behavior would depend on
which host it runs on.
--
Pedro Alves