Re: [RFC] New GDB Port CR16

Mike Frysinger
2012-09-04T03:52:52Z

On Mon, Sep 3, 2012 at 5:30 AM, Pedro Alves wrote:
> 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.

there is cruft like this in other sims. it probably would be
desirable to clean it up.
-mike