Re: [RFC] New GDB Port CR16

Pedro Alves
2012-09-03T09:31:21Z

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