This is the mail archive of the gdb-patches@sources.redhat.com 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: [RFA] frv-sim: don't abort on illegal instruction


OK -- approved. Please also look at the other interrupts to see if there are other candidates for this treatment.

Dave

Michael Snyder wrote:

This will make debugging easier -- treat an illegal instruction
as a SIGILL rather than aborting.

------------------------------------------------------------------------

2003-09-11 Michael Snyder <msnyder@redhat.com>

* interrupts.c (frv_non_operating_interrupt): Call sim_engine_halt instead of sim_engine_abort. It's a sigill, we want to be able to debug it.

Index: interrupts.c
===================================================================
RCS file: /cvs/src/src/sim/frv/interrupts.c,v
retrieving revision 1.1
diff -p -r1.1 interrupts.c
*** interrupts.c 29 Aug 2003 16:35:46 -0000 1.1
--- interrupts.c 11 Sep 2003 20:41:24 -0000
*************** frv_non_operating_interrupt (
*** 1020,1027 ****
"interrupt: privileged_instruction\n");
break;
case FRV_ILLEGAL_INSTRUCTION:
! sim_engine_abort (sd, current_cpu, pc,
! "interrupt: illegal_instruction\n");
break;
case FRV_INSTRUCTION_ACCESS_EXCEPTION:
sim_engine_abort (sd, current_cpu, pc,
--- 1020,1026 ----
"interrupt: privileged_instruction\n");
break;
case FRV_ILLEGAL_INSTRUCTION:
! sim_engine_halt (sd, current_cpu, NULL, pc, sim_stopped, SIM_SIGILL);
break;
case FRV_INSTRUCTION_ACCESS_EXCEPTION:
sim_engine_abort (sd, current_cpu, pc,





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