Program debugging method and apparatus

A program debugging and process technology, applied in the storage field, can solve problems such as affecting storage services, increasing difficulty, increasing code complexity, etc., to achieve the effect of ensuring execution efficiency

Inactive Publication Date: 2017-11-28
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

With the development of new functions, related software codes gradually increase, and the complexity of the codes also increases. Therefore, the difficulty of debugging the program to solve the cause of program bugs is also greatly increased.
[0004] The traditional program debugging method used in the prior art is based on the GDB debugging tool using ptrace for breakpoint debugging. By setting breakpoints to debug the program step by step, the execution efficiency of the program will be affected during the debugging process.
For storage devices, the impact on application execution efficiency during debugging is strictly not allowed, which will seriously affect the storage services provided by the system.

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
  • Program debugging method and apparatus
  • Program debugging method and apparatus
  • Program debugging method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to describe the technical solutions in the embodiments of the present application more clearly and completely, the technical solutions in the embodiments of the present application will be introduced below in conjunction with the drawings in the embodiments of the present application. Apparently, the described embodiments are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0038] Please refer to figure 1 , figure 1 A flow chart of a program debugging method provided in the embodiment of the present application mainly includes the following steps:

[0039] Step 101: Map the data file of the business process to the memory space of the debugging process by mmap.

[0040] Mmap is a shared memory method provided by Linux. It can map files or ...

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 program debugging method. The program debugging method comprises the steps of mapping data files of a business process to a memory space of a debugging process in an mmap manner; and parsing and debugging the data files according to resource files and symbol table files of the business process by utilization of a BE binary editor, wherein the resource files and the symbol table files are generated during a compilation process of the business process in advance. By mapping the data files of the business process to the debugging process, the data files can be parsed to complete debug according to the resource files and the symbol table files without influencing execution efficiency of the business process. The invention also discloses a program debugging apparatus having the above beneficial effect.

Description

technical field [0001] The present application relates to the technical field of storage, and in particular to a program debugging method and device. Background technique [0002] With the rapid development of information technology, technological innovation in the field of storage technology is also changing with each passing day, quietly changing people's production and lifestyle. [0003] At present, a single disk storage device has gradually transformed into a more complex intelligent storage device system, and software development is based on the Linux system to meet the production requirements of modern society. With the development of new functions, the number of related software codes gradually increases, and the complexity of the codes also increases. Therefore, the difficulty of debugging the program to solve the cause of program bugs is also greatly increased. [0004] The traditional program debugging method adopted in the prior art is based on the breakpoint de...

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 Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3624G06F11/3644
Inventor 王艳清徐洪志
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
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