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

General host computer symbol search and analysis method for elf file debugging information

A technology for debugging information and analysis methods, applied in the field of general host computer symbol search and analysis, can solve problems such as error-prone, limited monitoring variables, manual search for adding and deleting variables, etc., to achieve the effect of strong versatility and reduced workload

Active Publication Date: 2022-02-18
ZHEJIANG LEAPMOTOR TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Variables monitored in the prior art need to be assigned corresponding values ​​in the lower computer. Every time a variable is monitored, the upper and lower computers and the communication protocol need to be changed accordingly. The number of monitored variables is the required number of monitored variables, so it can be monitored Variables are limited, and as demand increases, the host computer needs to be upgraded accordingly, resulting in a significant increase in the workload of programming; adding and deleting variables requires manual search and manual entry, which is time-consuming, laborious, and error-prone; different project requirements need to be changed accordingly, affecting the project schedule

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
  • General host computer symbol search and analysis method for elf file debugging information
  • General host computer symbol search and analysis method for elf file debugging information

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0043] The general host computer symbol search and analysis method for ELF file debugging information is divided into obtaining symbols and synchronously parsing symbol data with the host computer in real time. The technical solution for obtaining the symbol part is: use the OBJDUMP(-g) tool of the existing open source cross-compilation tool chain to analyze the debugging information part of the ELF file in DWARF format, and obtain all the variable information and function information contained in the debugging information part of the ELF file , use the information in the .debug_info part obtained by parsing and sorting out the provisions of the DWARF format, and then obtain global symbols and their type information (including symbol names, symbol types, start addresses, start offsets and sizes, bit fields), functions and functions The type information generates the configuration file (.csv) of the host computer. This part is packaged as Readelf.exe. The content of the configur...

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 present invention relates to a general upper computer symbol search and analysis method for ELF file debugging information, which is based on the requirements of the general upper computer, and is designed to acquire variables and their address information in the lower computer and analyze the variables in the lower computer for use in The method for displaying and analyzing the change of the variable value of the upper computer by the upper computer is used for changing the variable value of the lower computer. The present invention obtains the variable and its address information in the lower computer by parsing the .debug_info part of the executable file ELF file written in the lower computer through the OBJDUMP[3] (-g) tool in the existing open source cross-compilation tool chain to TXT In the file, use a set of methods designed by the present invention to obtain the global variable information and function information in the ELF file to complete, can realize the search of global variables and functions, and automatically record them as configuration files, which greatly reduces the number of programmers. workload; when the upper computer is in use, it only needs to call the Readelf.

Description

technical field [0001] The invention relates to the field of symbol search and analysis, in particular to a general host computer symbol search and analysis method for ELF file debugging information. Background technique [0002] The purpose of the embedded software universal upper computer (hereinafter referred to as the universal upper computer) is to analyze the variable symbols in the lower computers of different projects and obtain and change the real values ​​corresponding to the symbols. The symbol search and analysis program of the general host computer is a program that provides the global symbol search and sorting of the lower computer programs, and the analysis and matching functions of the data read by the upper computer. If the monitoring requirements are changed, both the upper computer and the lower computer need to be upgraded accordingly. [0003] The existing upper computer needs to monitor the variables in the protocol through a unique communication proto...

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): G06F8/41G06F8/75
CPCG06F8/427G06F8/75
Inventor 王志方
Owner ZHEJIANG LEAPMOTOR TECH CO LTD