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

A stack restore method and computer system

A computer system and stack technology, applied in the computer field, can solve problems such as inability to debug applications

Active Publication Date: 2019-01-11
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the existing stack restoration methods, the information of some functions, such as an application-specific function, cannot be completely restored. Generally, only the memory addresses of these functions are restored, so that the development and user of the application program cannot handle the application well. program for debugging

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
  • A stack restore method and computer system
  • A stack restore method and computer system
  • A stack restore method and computer system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] 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 creative efforts fall within the protection scope of the present invention.

[0024] The embodiment of the present invention provides a stack restoration method, which mainly restores the function call stack corresponding to the application program when the computer system is running the application program, so that the hierarchical structure of the function call can be obtained. The method in this embodiment is a computer The method executed by the system, the flow chart is as follows figure 1 shown, including:

[0025] Step 101, when 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

An embodiment of the invention discloses a method for restoring stacks and a computer system, and is applied to the technical field of computers. The method includes enabling the computer system to acquire corresponding relations between names and start memory addresses of various functions corresponding to application programs when the application programs are about to run; acquiring function memory addresses of first functions in function invocation stacks of the application programs; determining offset of the corresponding first functions according to the function memory addresses and the start memory addresses closest to the function memory addresses and determining names of the first functions according to the corresponding relations; outputting information of the function invocation stacks. The information of the function invocation stacks contains the determined names and the determined offset of the first functions. The method and the computer system have the advantages that the non-symbolic names and the non-symbolic offset of the functions can be restored by the aid of the information of the function invocation stacks, the information of the function invocation stacks is acquired by the aid of an existing process, accordingly, hierarchical relations between the various functions in the function invocation stacks can be known by users, and complete function information can be provided for the users during debugging.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a stack restoration method and a computer system. Background technique [0002] The function call stack is the function information called in a certain order in a certain thread of the application program during the running process of the application program. By restoring the stack, you can know the function information called in a certain thread of the application program, including the function name and Location information, etc., so that the developer and user of the application program can know the information of the application program, so that the application program can be debugged and other operations. However, in the existing stack restoration methods, the information of some functions, such as an application-specific function, cannot be completely restored. Generally, only the memory addresses of these functions are restored, so that the development and user o...

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): G06F9/44G06F11/36
Inventor 龙磊邱金涛
Owner TENCENT TECH (SHENZHEN) CO LTD