Software debugging system and debugging method

A software debugging and software technology, applied in software testing/debugging, etc., can solve problems such as inability to find software quickly and accurately, low efficiency, etc., and achieve the effect of improving debugging efficiency

Inactive Publication Date: 2013-04-17
JIANGSU MONTMERY ELEVATOR
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] Obviously, adopt the above-mentioned method in the prior art, after the program is downloaded to the embedded system to run in the middle and late stages of the development test (hereinafter referred to as debugging), only the black-box test (also referred to as data testing) can be carried out to the embedded software. driving test), which usually requires pre-designing very complex test data, and cannot quickly and accurately find software defects (BUG); Download the entire software system after recompilation, and the debugging efficiency is very low

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
  • Software debugging system and debugging method
  • Software debugging system and debugging method
  • Software debugging system and debugging method

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0053] Example 1 (no return value):

[0054] Assuming that the software layer B contains a function: B1 (parameter 1, parameter 2), the corresponding function of the software layer B' in the embedded system is: B1' (parameter 1, parameter 2); B1 and B1' have no return value. It should be noted that in this paper, for the convenience of description, different names are given to the corresponding functions in the PC terminal and the embedded system (such as the above-mentioned B1 and B1'), but in fact the corresponding functions in the PC terminal and the embedded system The names are usually the same.

[0055] When the function in the software layer A calls B1, the debug level determiner B intercepts the function call and converts it into the following debugging command (which can be called a function call request without return value):

[0056] SetCommand('B1', parameter 1, parameter 2);

[0057] The debugging level determiner B sends the above-mentioned debugging commands t...

example 2

[0058] Example 2 (with return value):

[0059] Assume that the return value of functions B1 and B1' in Example 1 is an integer value;

[0060] When a function in the software layer A calls B1, the debug level determiner B intercepts the function call and converts it into the following debugging command (which can be called a function call request with a return value):

[0061] GetCommand('B1', parameter 1, parameter 2);

[0062] The debugging level determiner B sends the above-mentioned debugging commands to the embedded debugging interface through the PC-side debugging interface. After the embedded debugging interface receives the command, it knows that the function B1' in the software layer B' needs to be called according to the first parameter 'B1' of the GetCommand function, so the second and third parameters of the GetCommand function are used as B1' The input parameter is used to call the function, and the return value RET1 is obtained;

[0063] The embedded debugging...

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 software debugging system and a debugging method. The system contains a PC terminal and an embedded system terminal which are mutually connected, used for debugging the software to be debugged running at the PC terminal and the embedded system terminal; the software to be debugged is divided into a N function sets with one or a plurality of functions contained in every function set; the PC terminal contains a debugging control unit and a debugging-level judging device; the embedded system terminal contains an embedded debugging interface; the debugging control unit sets a system operation level set and an operation level value corresponding to each function set; after the debugging level judging device, during the debugging process, intercepts and captures the function in No. i function set to invoke the function in No. j function set, whether the operation level value of No. j function set is contained in the system operation level set is judged; if the operation level value of No. j function set is contained in the system operation level set, the invoked function running at the PC terminal is invoked; if not, a debugging command is sent to the embedded debugging interface which debugs the same function running at the embedded system terminal.

Description

technical field [0001] The invention relates to a software debugging system and a debugging method. Background technique [0002] With the rapid development of hardware design and manufacturing technology, embedded systems have been widely used in various fields such as industry, communication, and home appliances. At the same time, with the continuous enhancement of functions, the architecture of embedded systems is becoming more and more complex. Embedded systems have developed from being only composed of single-chip microcomputers and simple program codes to include powerful processors, rich external device interfaces, and complex operating systems and application software. [0003] figure 1 It is a schematic diagram of the hardware and software structure of an embedded system. Such as figure 1 As shown, similar to the PC (personal computer) system, the embedded system can be divided into two parts, the software system and the hardware system, which are called embedde...

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 JIANGSU MONTMERY ELEVATOR
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products