A method of debugging a function function in an embedded system program in an application

An embedded system and function technology, applied in software testing/debugging, electrical digital data processing, instruments, etc., can solve problems such as huge debugging information, not much, and limited coverage of debugging information

Active Publication Date: 2019-04-26
NARI TECH CO LTD
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This brings about the following problems: how to communicate between the debugger and the program being debugged, how to notify the debugger in time when the program being debugged generates an exception, how the debugger controls and accesses the program being debugged, how the debugger recognizes the multitasking information about the program being debugged and Control a specific task, how the debugger handles certain information related to the target hardware platform (such as register information of the target platform, disassembly of machine code, etc.)
In short, the development and debugging of embedded systems is more difficult
[0004] At present, after the product is finalized in the embedded system, once there is a problem in the application of the product, there are not many ways to debug the application pr

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 method of debugging a function function in an embedded system program in an application
  • A method of debugging a function function in an embedded system program in an application
  • A method of debugging a function function in an embedded system program in an application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The present invention will be further described below. The following examples are only used to illustrate the technical solution of the present invention more clearly, but not to limit the protection scope of the present invention.

[0025] The invention provides a method for debugging functions in embedded system programs in applications, including: establishing a corresponding table between function pointers and function prototypes in embedded system programs, adding function prototype analysis functions, using serial ports, USB The port or Ethernet interface receives the function call string and parses it, then matches the lookup table, finds the function pointer that needs to be executed, and finally jumps to execute the function and returns the execution result.

[0026] In the present invention, the corresponding table between the function pointer and the function prototype is established, and the established structure is:

[0027]

[0028] Where func is a fun...

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 method for debugging a function function in an embedded system program in an application. The method comprises the steps that a corresponding table between function pointersand function prototypes is established in an embedded system program, a function prototype analysis function is added, a communication port is used for receiving a function calling character string and analyzing the function calling character string, then a lookup table is matched, the function pointers needing to be executed are found, finally an execution function is skipped to, and an executionresult is returned. According to the function debugging method provided by the invention, the function debugging can be carried out on the premise of not influencing the program function, and the participation of a debugging tool is not needed. And when the program is executed, an application layer debugging method by outputting debugging information is avoided.

Description

technical field [0001] The invention relates to a method for debugging functions in embedded system programs in applications. Background technique [0002] In the field of software design, debugging is an indispensable link in the development process, and there are obvious differences in the debugging environment between general-purpose desktop operating systems and embedded operating systems. In the former, the debugger and the program to be debugged are often two processes running on the same operating system on the same machine, and the debugger process uses the call interface specially provided by the operating system (ptrace calls in early UNIX systems, today's process files system, etc.) to control and access the debugged program process. [0003] The latter (also known as remote debugging), in order to provide system developers with a flexible and convenient debugging interface, the debugger is still an application program running on a general desktop operating syste...

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 NARI 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