IL227769A

Diagnosing code using single step execution

Abstract

This record has no abstract on file.

Term

No projected expiry on record.

  1. Priority
  2. Filed
  3. Published
  4. Today

35 claims: 3 independent, 32 dependent

  1. 1
    WO 2012/123706 P042866WO PCT/GB2012/050232 23 CLAIMS 1. A method for diagnosing a processor processing a stream of instructions comprising:(i) controlling said processor to execute in a single step mode such that a single instruction from said instruction stream is executed, said processor determines if said single instruction is one of at least one predetermined type of instruction and stores a type indicator in a data storage location and a diagnostic exception is taken after said processor has processed said single instruction;(ii) performing diagnostic operations following said diagnostic exception including: accessing said type indicator stored in said data storage location;and (iiia) in response to said type indicator indicating said single instruction was not one of said predetermined type controlling said processor to continue executing instructions in said single step mode such that a next single instruction is executed on return form said diagnostic exception;(iiib) in response to said type indicator indicating said single instruction was one of said at least one predetermined type controlling said processor to exit said single step mode and not execute said next instruction within said instruction stream as a single instruction followed by a diagnostic exception.
  2. 16
    A diagnostic apparatus for analysing a processor processing an instruction stream, said diagnostic apparatus comprising:an output for outputting control signals to said processor and an input for receiving data from said processor;and diagnostic circuitry for performing diagnostic operations;said diagnostic circuitry being configured to output a control signal to said processor to set an indicator value indicating said processor is to operate in single step mode such that a single instruction in said instruction stream is executed and then a diagnostic exception is taken;and said diagnostic circuitry being configured to access a storage location for storing a type indicator indicating whether said executed single instruction was one of at least one predetermined type of instruction;and WO 2012/123706 P042866WO PCT/GB2012/050232 26 in response to said type indicator indicating said executed single instruction was not one of said predetermined type said diagnostic circuitry is configured to control said processor to continue executing instructions in said single step mode such that a next single instruction is executed on return form said diagnostic exception;and in response to said type indicator indicating said executed single instruction was one of said at least one predetermined type said diagnostic circuitry is configured to control said processor to exit said single step mode and not execute said next instruction within said instruction stream as a single instruction followed by a diagnostic exception.
  3. 31
    A data processing apparatus comprising a processor for processing data and a plurality of storage locations for storing control data;at least one of said storage locations storing a single step mode control value, said data processing apparatus being configured to respond to said single step mode control value being set to execute instructions from an instruction stream in a single step mode, such that a diagnostic exception is taken after execution of each of said instructions;said processor being configured when said single step mode control value is set to determine for each instruction executed by said processor whether it is of one of at least one predetermined type and to store a type indicator within one of said storage locations, said type indicator indicating that said instruction was one of said predetermined type, or said instruction was not one of said predetermined type or said instruction is of an unknown type.