Call stack backtracking method and device of embedded system and computer equipment

An embedded system and call stack technology, applied in the computer field, can solve problems such as troubleshooting and recovery of system problems, backtracking and derivation, and impact on test efficiency, and achieve the effect of improving software development and test efficiency

Pending Publication Date: 2021-12-03
SHANGHAI WINGTECH INFORMATION TECH CO LTD
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method has high requirements for developers, and requires developers to have a deeper understanding and understanding of CPU architecture, registers, operation and exception mechanisms, and program compilation principles; Backtracking and inferring the complete execution call relationship at the function location of the downtime, so that the system cannot be troubleshooted and recovered in an effective and timely manner, which has a relatively large impact on the efficiency of software development and testing

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
  • Call stack backtracking method and device of embedded system and computer equipment
  • Call stack backtracking method and device of embedded system and computer equipment
  • Call stack backtracking method and device of embedded system and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0037] For the downtime problem of the embedded MCU software system, considering that the current exception handling method cannot locate the location where the CPU downtime occurs, it is impossible to accurately trace back the complete execution call relationship. Based on this, the present embodiment provides a call stack traceback method, device and computer equipment for an embedded system, which can efficiently and accurately trace back a complete call relationship. For ease of understanding, the following describes the embodiments of the present application in detail...

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 relates to the field of computers, and provides a call stack backtracking method and device of an embedded system and computer equipment. The method comprises the following steps: compiling and linking a program source code file based on a specified compiling command and a downtime exception handling program to generate a target file in an ELF format, wherein the specified compiling command is used for recording an initial address of a function stack frame; when the system is abnormal, storing the register information and the function stack frame corresponding to the target file, and executing a downtime exception processing program, wherein the register information comprises an FP register and an LR register; analyzing the function stack frame based on an FP register and an LR register through a downtime exception handling program to obtain a calling address table of an abnormal target function; and analyzing call stack backtracking information of the address in the call address table in the target file by adopting a preset address analysis tool. By adopting the method, the complete calling relation can be backtracked more efficiently and accurately.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a call stack backtracking method, device and computer equipment for an embedded system. Background technique [0002] During the development, debugging and testing of embedded MCU (Microcontroller Unit, micro control unit) software, various downtime phenomena due to software design defects are often encountered. For the downtime problem of the embedded MCU software system, at present, it is mainly based on the contents of the CPU (Central Processing Unit, central processing unit) core register, combined with the disassembly code, to check and repair the design defects of the code. However, this method has high requirements for developers, and requires developers to have a deeper understanding and understanding of CPU architecture, registers, operation and exception mechanisms, and program compilation principles; Backtracking upwards at the function location of the do...

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/07
CPCG06F11/079G06F11/0766
Inventor 黎发明
Owner SHANGHAI WINGTECH 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