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: [RFC] New GDB Port CR16


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


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