This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] New GDB Port CR16
- From: Mike Frysinger <vapier at gentoo dot org>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Kaushik Phatak <Kaushik dot Phatak at kpitcummins dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, Yao Qi <yao at codesourcery dot com>
- Date: Mon, 3 Sep 2012 23:52:06 -0400
- 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> <504478D0.4040202@redhat.com>
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