Unlock instant, AI-driven research and patent intelligence for your innovation.

A method for monitoring memory reading and writing in a soft single-step system

A soft single-step, memory technology, applied in the field of software systems, to achieve the effect of improving the debugging progress

Active Publication Date: 2018-08-24
SHANGHAI BAUD DATA COMM
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The present invention aims at the problems existing in the existing memory monitoring technology, and provides a brand-new soft single-step system memory reading and writing monitoring method

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method for monitoring memory reading and writing in a soft single-step system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] In order to make the technical means, creative features, goals and effects achieved by the present invention easy to understand, the present invention will be further described below in conjunction with specific illustrations.

[0034] This example introduces the concrete implementation process of the scheme of the present invention with MIPS3274K running VxWorks operating system as an example, the specific implementation steps are as follows, refer to figure 1 :

[0035] 1. After VxWorks initialization, use intVecSet to mount the IV_WATCH_VEC watch point exception handling function, use intVecSet to mount the IV_BP_VEC breakpoint exception handling function, and use taskSwitchHookAdd to mount the task switching hook function;

[0036] 2. Set the memory interval to be monitored, set the base address mask of the memory observation point through the WatchHi register of the CPU, and set the base address and access mode of the memory observation point through the WatchLo ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a memory reading and writing monitoring method in a soft single-step system. The method realizes a brand-new memory monitoring technology through the observation point mechanism, breakpoint mechanism and advanced patch technology of the CPU, and is suitable for embedding multiple (single) tasks On-line debugging of the system. The soft single-step mechanism provided by the invention can effectively solve the online memory monitoring of the multi-task system without the hard single-step mechanism.

Description

technical field [0001] The invention relates to software system technology, in particular to memory monitoring technology in the software system. Background technique [0002] The existing memory monitoring technology (such as the famous GDB) is to specify the memory range to be monitored by a task through the watch point mechanism. When it is detected that the task reads / writes this address, the task will not read / write this address Instead, it immediately enters the exception, and waits for the user to resolve and delete the watchpoint task before continuing to run. [0003] This method is more effective for debugging single-task systems, but it has the following disadvantages: [0004] 1. When the memory to be detected is frequently read / written, and the programmer only cares about memory operations that meet certain rules, GDB cannot define and judge all the rules well, which may cause the program being debugged to frequently enter the observation point abnormally, Ma...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
Inventor 汪革苟利平王仁雷武琦
Owner SHANGHAI BAUD DATA COMM