Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Debugger and debugging method thereof

A debugging method and a debugger technology, applied in the computer field, can solve problems such as inability to track and debug user address space and kernel address space

Active Publication Date: 2012-02-08
ZTE CORP
View PDF4 Cites 39 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The present invention provides a debugger and its debugging method to solve the problem that the debugger in the prior art cannot simultaneously track and debug user address space and kernel address space

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
  • Debugger and debugging method thereof
  • Debugger and debugging method thereof
  • Debugger and debugging method thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0049] In order to solve the problem that various debuggers in the prior art cannot simultaneously support tracking and debugging of user address space and kernel address space, the present invention provides a debugger and a debugging method thereof. The debugger realizes the purpose of tracing and debugging the running of the debugged program in the user address space and the kernel address space. The debugger supporting dual-state debugging not only support...

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 debugger and a debugging method thereof. The debugging method comprises the following steps: after the debugging relation is established, a debugged task runs in a kernel mode or a user mode by means of the debugger; when the debugger receives a stop instruction sent by a top level or runs into an abnormal event during the debugging process of the debugged task or captures a concerned signal message during the debugging process of the debugged task in the user mode, the debugged task stops running, and a stop mark bit is set in the debugged task; and after the debugged task stops running, the debugger accesses the memory information and / or register information of the debugged task. By adopting the debugging method, the running status of the debugged task in user address space and kernel address space can be tracked and debugged.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a debugger and a debugging method thereof. Background technique [0002] In UNIX-like operating systems, a standard service is provided to enable user-mode programs to control the underlying hardware and services (such as the control of the file system). This service is called system calls (system calls). The bridge connecting user-mode programs and system calls is called a library function. When a program needs to make a system call, it first calls the corresponding library function, finds the system call table and the corresponding system call number through the library function, puts the relevant parameters into the register related to the system call, and then calls soft interrupt. This interrupt is like a window that allows user-mode programs to access the kernel mode, enabling library functions to pass parameters and system call numbers to the kernel, and finally the ke...

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
IPC IPC(8): G06F11/36
CPCG06F11/362
Inventor 吴春江
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products