Method for debugging embedded operating system and device therefor

An operating system and embedded technology, applied in the field of communication, can solve the problems of high debugging cost, not knowing various target files, global variables, debugging can not meet the expected requirements, etc., to achieve the effect of reducing debugging costs

Active Publication Date: 2009-12-23
DATANG MICROELECTRONICS TECH CO LTD
View PDF0 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Various debugging tools debug various target files, global variables and other parameters in the embedded operating system according to the corresponding embedded operating system. If the kernel of the corresponding embedded operating system changes or other embedded operating systems are replaced system, the debugging tool cannot know these changes or the specific situation of the new embedded operating system, that is, it does not know the parameters such as various target files and global variables to be used in debugging. In this case, if the debugging tool Debugging various target files, global variables and other parameters according to the original embedded operating system will make the debugging fail to meet the expected requirements; if the new embedded operating system does not have the original global variables and other parameters , it may even become impossible to debug
[0004] It can be seen from the above that various debugging tools can only debug specific types of embedded operating systems. If a computer system is installed with multiple embedded operating systems, debugging these embedded operating systems needs to correspond The embedded operating system installs a variety of debugging tools or plug-ins, which makes the debugging cost high

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
  • Method for debugging embedded operating system and device therefor
  • Method for debugging embedded operating system and device therefor
  • Method for debugging embedded operating system and device therefor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] A method for debugging an embedded operating system of the present invention may include (see figure 1 ):

[0028] Step 101, determine the embedded operating system to be debugged;

[0029] Step 102, acquiring preset debugging instruction information corresponding to the embedded operating system;

[0030] Step 103, use the debugging instruction information to debug the embedded operating system to be debugged.

[0031] The following are examples of specific implementation manners that can be adopted when implementing the above method. One way of implementation is that the debugging instruction information of the embedded operating system 1 can be stored in the configuration file, and the configuration file is stored in the embedded operating system 1. After the embedded operating system 1 to be debugged is determined, the debugging tool The configuration file stored in the embedded operating system 1 is obtained to obtain debugging instruction information, and then ...

Embodiment 2

[0043] In the method embodiment of the present invention, it may further include: modifying the preset debugging instruction information. Modifying the preset debugging instruction information may include the following steps (see figure 2 ):

[0044] Step 201, adding or editing the type number and name of the embedded operating system, the name of the global variable identifying the embedded operating system, and the number of control blocks included in the embedded operating system in the debugging instruction information;

[0045] Step 202, add or edit the type number and name of the control block, the data size of the control block, the name of the control block linked list pointer variable, the data length of the value pointed to by the control block linked list pointer, and the value contained in the control block in the debugging instruction information. the number of registers;

[0046] Step 203, adding or editing the number, name, data length of the register value, ...

Embodiment 3

[0052] This embodiment describes step 103 in the first embodiment in detail, that is, the process of how the debugging tool uses the debugging instruction information to debug the embedded operating system, which may specifically include (see image 3 ):

[0053] Step 301, according to the name of the control block chain header pointer and the data length information in the debugging instruction information, read the value of the control block chain header pointer, and determine the starting position of a certain type of control block data storage. The name of the control block chain header pointer corresponds to the type of control block;

[0054]When step 301 is specifically implemented, it may be the name of the control block chain header pointer of a certain type (such as task, semaphore, dynamic memory area, etc.) according to the configuration information of the embedded operating system currently being debugged by the debugging tool, and Control the data length of the ...

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 embodiment of the invention provided a method for debugging an embedded operating system, comprising: the embedded operating system to be debugged is determined, and preset debugging indicating information corresponding to the embedded operating system is acquired; the embedded operating system to be debugged is debugged by utilizing the debugging indicating information. Compared with the prior art, in the embodiment of the invention, after the embedded operating system to be debugged is determined, a debugging tool is used for acquiring the preset debugging indicating information corresponding to the embedded operating system, and the debugging indicating information is used for debugging the embedded operating system to be debugged, so that the debugging tool can be used for debugging different types of embedded operating systems.

Description

technical field [0001] The present invention relates to the technical field of communication, and more specifically, relates to a method and a device for debugging an embedded operating system. Background technique [0002] Debugging is an important part of the operating system development process. The debugging process can be summarized as: setting breakpoints--program pause--observe the program status--continue to run, and modify and edit parameters such as global variables or target files during this process. Embedded operating system debugging is quite different from general personal computer operating systems. In general PC system development, the debugger and the program to be debugged are two processes running on the same hardware and software platform. The debugger process passes the operation The debugging interface specially provided by the system controls and accesses the process of the program being debugged; while in the embedded operating system, the integrate...

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
Inventor 李岩刚
Owner DATANG MICROELECTRONICS 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