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

Method and apparatus for debugging internal core state programm of operation system

An operating system and kernel mode technology, which is applied in the field of debugging operating system kernel mode programs and devices, and can solve the problem that ordinary debuggers cannot debug programs.

Active Publication Date: 2006-05-31
电子创新有限责任公司
View PDF0 Cites 35 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The technical problem to be solved by the present invention is to provide a method and device for debugging an operating system kernel state program, which solves the disadvantage that ordinary debuggers cannot debug programs running in the operating system kernel state

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 and apparatus for debugging internal core state programm of operation system
  • Method and apparatus for debugging internal core state programm of operation system
  • Method and apparatus for debugging internal core state programm of operation system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The present invention proposes a new debugging framework in order to overcome the shortcomings that ordinary debuggers cannot debug and run programs in the kernel state of the operating system, such as figure 1 As shown, the debugging system architecture specifically includes: designing a kernel debugging stub 11, and the debugging stub 11 runs in the kernel mode. The foreground debugging agent 12 communicates with the debugging stub 11 , and the debugging stub 11 controls the operation of the kernel thread 13 . The kernel thread 13 feeds back the abnormal information to the debugging stub 11 when encountering an abnormal event, and the debugging stub 11 returns the information to the foreground debugging agent 12 after receiving the abnormal information, and the foreground debugging agent 12 receives the message and returns it to the debugger 14. Therefore, the common user mode debugger 14 can be used to debug the program in the kernel mode, which facilitates the deve...

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

A method for debugging kernel state of operation system includes making foreground debug agent module communicate with debug picket module by setting debug picket module in kernel state and said agent module in user state, receiving debug information by debug picket module to control kernel linear program operation and to obtain abnormal information of kernel linear program, sending abnormal information to debug picket module then sending it to foreground agent module furthermore returning it back to debugger for carrying out debugging on kernel state program.

Description

technical field [0001] The invention relates to a method and a device for debugging an operating system kernel state program, in particular to a method and a device for debugging a kernel state program by using an ordinary debugger. Background technique [0002] For security reasons, the operating system has designed two running states for the program: user state and kernel state. Ordinary applications run in user mode, and some special programs and the operating system itself run in kernel mode. The current debugger is designed to debug user-mode programs. For kernel-mode programs, only printing or dedicated chip debugging interfaces can be used for debugging. The disadvantages are: [0003] 1) Using the printing method actually has no debugging function, and the printing statement is completely imitated based on experience, and must be recompiled every time, resulting in low debugging efficiency. [0004] 2) The method of using the dedicated chip debugging interface is r...

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 电子创新有限责任公司