patents.google.com

CN112667412A - Debugging device and method for embedded system core dump - Google Patents

  • ️Fri Apr 16 2021

CN112667412A - Debugging device and method for embedded system core dump - Google Patents

Debugging device and method for embedded system core dump Download PDF

Info

Publication number
CN112667412A
CN112667412A CN202011360077.1A CN202011360077A CN112667412A CN 112667412 A CN112667412 A CN 112667412A CN 202011360077 A CN202011360077 A CN 202011360077A CN 112667412 A CN112667412 A CN 112667412A Authority
CN
China
Prior art keywords
debugging
debugger
local
adapter
abnormal information
Prior art date
2020-11-27
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011360077.1A
Other languages
Chinese (zh)
Other versions
CN112667412B (en
Inventor
李昱江
袁浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Coretek Systems Technology Co ltd
Original Assignee
Beijing Coretek Systems Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
2020-11-27
Filing date
2020-11-27
Publication date
2021-04-16
2020-11-27 Application filed by Beijing Coretek Systems Technology Co ltd filed Critical Beijing Coretek Systems Technology Co ltd
2020-11-27 Priority to CN202011360077.1A priority Critical patent/CN112667412B/en
2021-04-16 Publication of CN112667412A publication Critical patent/CN112667412A/en
2024-09-06 Application granted granted Critical
2024-09-06 Publication of CN112667412B publication Critical patent/CN112667412B/en
Status Active legal-status Critical Current
2040-11-27 Anticipated expiration legal-status Critical

Links

  • 238000000034 method Methods 0.000 title claims abstract description 38
  • 230000002159 abnormal effect Effects 0.000 claims abstract description 70
  • 230000006978 adaptation Effects 0.000 claims abstract description 11
  • 238000004891 communication Methods 0.000 claims description 66
  • 230000008569 process Effects 0.000 claims description 19
  • 238000012545 processing Methods 0.000 claims description 8
  • 238000011161 development Methods 0.000 abstract description 7
  • 230000006870 function Effects 0.000 description 5
  • 230000004048 modification Effects 0.000 description 5
  • 238000012986 modification Methods 0.000 description 5
  • 230000005540 biological transmission Effects 0.000 description 3
  • 230000005856 abnormality Effects 0.000 description 2
  • 238000010586 diagram Methods 0.000 description 2
  • 230000003993 interaction Effects 0.000 description 1
  • 238000012423 maintenance Methods 0.000 description 1
  • 230000008707 rearrangement Effects 0.000 description 1
  • 238000006467 substitution reaction Methods 0.000 description 1

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a debugging device and a method for embedded system core dump, which comprises the following steps: the debugger is used for sending a debugging instruction to the local debugging adapter and receiving abnormal information sent by the local debugging adapter; and the local debugging adapter is used for analyzing the core dump file of the embedded system to obtain abnormal information and sending the abnormal information to the debugger according to the debugging instruction. The local debugging adapter is added to analyze the core dump file of the embedded system in advance to obtain abnormal information, the debugger only needs to adopt a remote debugging mode to obtain the abnormal information, the problems that the debugger is directly used for debugging and analyzing, a large amount of codes need to be modified for the debugger to adapt to the analysis of dump files in different formats, and therefore adaptation difficulty and cost are increased are solved, and therefore the difficulty in realizing the core dump and the development cost can be reduced by the scheme of the embodiment of the invention.

Description

Debugging device and method for embedded system core dump

Technical Field

The embodiment of the invention relates to the technical field of communication, in particular to a debugging device and a debugging method for embedded system core dump.

Background

The core dump is that after the operating system encounters an abnormality, information such as abnormal field memory information, register information, error tasks and the like is stored as a core dump file through a certain format, and the core dump file is analyzed through a debugger so as to determine the cause of the operating system error.

For embedded operating systems, a GDB (gnu debug) debugger is generally used to analyze an acquired core dump file and show an abnormal cause according to an analysis result, but since different embedded operating systems may correspond to core dump files of different formats, when analyzing core dump files of different formats, a GDB debugger that is open-source, complex in function and large in code amount needs to be modified, thereby increasing difficulty in implementing core dump and development cost.

Disclosure of Invention

The embodiment of the invention provides a debugging device and a debugging method for core dump of an embedded system, which are used for analyzing core dump files of embedded systems with different formats through a local debugging adapter and feeding back an analysis result to a debugger according to a debugging instruction of the debugger so as to reduce the difficulty in realizing the core dump and the development cost.

In a first aspect, an embodiment of the present invention provides a debugging apparatus for a core dump of an embedded system, including: the debugger is configured to be in a remote debugging mode so as to establish communication connection with the local debugging adapter located locally through remote communication;

the debugger is used for sending a debugging instruction to the local debugging adapter and receiving abnormal information sent by the local debugging adapter;

and the local debugging adapter is used for analyzing the core dump file of the embedded system to obtain abnormal information and sending the abnormal information to the debugger according to the debugging instruction.

In a second aspect, an embodiment of the present invention provides a debugging method for a core dump of an embedded system, which is applied in a debugging apparatus including a debugger and a local debugging adapter, where the debugger is configured in a remote debugging mode to establish a communication connection with the local debugging adapter through a remote communication manner, and the debugging method includes:

the debugger sends a debugging instruction to the local debugging adapter;

the local debugging adapter analyzes a core dump file of the embedded system to obtain abnormal information, and sends the abnormal information to the debugger according to the debugging instruction;

and the debugger receives the exception information sent by the local debugging adapter.

According to the technical scheme of the embodiment of the invention, the local debugging adapter is added to analyze the core dump file of the embedded system to obtain the abnormal information, and the debugger only needs to adopt the remote debugging mode to obtain the abnormal information, so that the problems of difficulty and cost increase due to the fact that the debugger is directly used for debugging and analyzing and a great amount of codes need to be modified to adapt to the analysis of dump files of different formats are solved, and therefore, the difficulty in realizing the core dump and the development cost can be reduced by utilizing the scheme of the embodiment of the invention.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.

FIG. 1 is a schematic structural diagram of a debugging apparatus for core dump of an embedded system according to an embodiment of the present invention;

FIG. 2 is a schematic structural diagram of a debugging apparatus for core dump of an embedded system according to a second embodiment of the present invention;

fig. 3 is a flowchart of a debugging method of an embedded system core dump according to a third embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.

It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, software implementations, hardware implementations, and so on.

The embodiment of the invention can be suitable for the condition of debugging the embedded core dump, the embedded operating system generally adopts a GDB debugger to analyze the acquired core dump file and show the abnormal reason according to the analysis result, but because different embedded operating systems can correspond to core dump files with different formats, when the core dump files with different formats are analyzed, the GDB debugger which is open in source, complex in function and large in code quantity is required to be modified, so that the difficulty in realizing the core dump and the development cost are increased. The technical scheme of the embodiment of the invention provides a debugging device for core dump of an embedded system. The device includes: the debugging device is configured to be in a remote debugging mode so as to establish communication connection with the local debugging adapter located locally through remote communication. Therefore, the local debugging adapter is added to analyze the core dump file of the embedded system to obtain the abnormal information, the debugger only needs to adopt the remote debugging mode to obtain the abnormal information, and the problems that the debugging is directly used for debugging and analyzing, a great amount of codes need to be modified for the debugger to adapt to the analysis of dump files of different formats, and the adaptation difficulty and the cost are increased are solved.

Example one

Fig. 1 is a debugging apparatus for an embedded system core dump provided in an embodiment of the present invention, where the embodiment is applicable to a case of parsing an embedded core dump file, and as shown in fig. 1, the apparatus specifically includes:

debugger 11 and

local debug adapter

12, and debugger 12 is configured to remote debug mode to establish a communication connection with a local debug adapter located locally by way of remote communication.

The

debugger

12 is configured to send a debug instruction to the local debug adapter, and receive exception information sent by the local debug adapter; the

local debug adapter

11 is configured to parse the core dump file of the embedded system to obtain exception information, and send the exception information to the

debugger

12 according to the debug instruction.

Specifically, the present embodiment is mainly directed to an embedded operating system, wherein the type of the embedded operating system includes: embedded Linux, Windows CE, Windows XP Embedded, Vxworks, Android, iOS, UNIX, etc., and the specific type of the Embedded operating system is not limited in this embodiment. In the normal operation process of the embedded operating system, if an abnormal termination of the application program occurs, core dump files with different formats may be generated for different embedded operating systems to store related data at an abnormal time, for example, the format of the core dump file generated for the embedded Linux operating system is core dump, and the format of the core dump file generated by the UNIX operating system is elf.

Optionally, establishing a communication connection with a local debugging adapter located locally through a remote communication method includes: the debugger sends a connection command to the local debugging adapter to establish communication connection with the local debugging adapter; the connection command includes communication port information of the local debugging adapter.

The host where the local debugging adapter is located may provide a Transmission Control Protocol (TCP) server, so that the debugger may establish a communication connection with the local debugging adapter through a remote communication manner based on the TCP server before sending a debugging instruction to the local debugging adapter. For example, the debugger sends a connect command target remote127.0.0.1 to the local debug adapter: 2332, where the connection command includes the communication port information of the local debug adapter as: the communication port 2332, after receiving the connection command, the local debug adapter establishes a communication connection with the debugger by calling the communication port 2332.

The abnormality information in the present embodiment includes: register information, memory information and task processes; the debugging type corresponding to the debugging instruction specifically includes: register debugging, memory debugging and task process debugging. Therefore, after determining the debug type, the debugger in this embodiment sends a debug instruction corresponding to the debug type to the local debug adapter, and after the local debug adapter parses the core dump file of the embedded system to obtain the exception information, the debugger feeds back the exception information of the corresponding type according to the debug instruction. Therefore, the debugger in this embodiment is connected to the local debugging adapter through remote communication, so that a remote debugging function of the debugger is realized, that is, the debugger does not directly complete the parsing of the core dump file through the debugger itself, but the parsing work is completed through the local debugging adapter, and the debugging adapter only implements basic processing actions such as displaying the parsing result, so that operation and maintenance personnel can determine the cause of the fault according to the display result of the abnormal information, and remove the fault, thereby ensuring the normal operation of the embedded operating system.

According to the technical scheme of the embodiment of the invention, the local debugging adapter is added to analyze the core dump file of the embedded system in advance to obtain the abnormal information, the debugger adopts the remote debugging mode to obtain the abnormal information, and the debugger does not need to modify a large number of codes to complete the analysis of the core dump file, so that the difficulty in realizing the core dump and the development cost are reduced.

Example two

Fig. 2 is a debugging apparatus for embedded system core dump according to an embodiment of the present invention, and based on the foregoing embodiment, in this embodiment, a structure of the

local debug adapter

11 is specifically described.

As shown in fig. 2, the

local debug adapter

11 includes:

dump file parser

111,

protocol debug module

112, and local network communication service module. The

dump file analyzer

111 is used for analyzing a core dump file of the embedded system to obtain abnormal information; the

protocol debugging module

112 is used for performing protocol adaptation processing on the abnormal information according to a protocol format supported by the debugger; the local network

communication service module

113 is configured to establish a communication connection with the debugger, and send the exception information after the protocol adaptation process to the debugger. The local debugging adapter can complete the analysis of the core dump files with different formats through the mutual interaction of the internal three structures, and transmits the abnormal information obtained by the analysis to the debugger according to the protocol format supported by the debugger.

The Debugger in this embodiment specifically includes a GNU Debugger (GDB), and a Protocol format supported by the Debugger includes a Remote Serial Protocol (RSP), and the Protocol debugging module and the local network communication service module communicate with each other by using a Modeling Interface (MI) Protocol.

Optionally, the dump file parser supports parsing operation on the core dump file in one or more formats; and the dump file parser provides different types of abnormal information calling interfaces for the protocol debugging module according to the types of the abnormal information.

Specifically, the core dump file parser in this embodiment is specifically configured to obtain a core dump file generated by an embedded system, and support parsing operations on the core dump file in one or more formats, for example, after determining that the obtained core dump file is generated by an embedded Linux operating system, the format of the obtained core dump file is determined to be a core dump file by identifying the core dump file. Because the core dump files with different format types correspond to different analysis modes, the dump file analyzer can specifically determine the analysis mode according to the format type by querying an analysis list, wherein the analysis list specifically includes a corresponding relationship between the format type of the dump file and the analysis mode. And in the parsing manner, specifically for a format type that is partially unsupported, the specified content in the parsing program code included in the dump file parser may be modified to adapt to different formats, and of course, when the format type of the dump file is supported by the debugger, the parsing program code does not need to be modified normally.

It should be noted that, although the embodiment of the present application involves modification of the parser program code in the process of determining the parsing scheme, due to the single function of the dump file parser, modification of the dump file parser is much simpler than modification of a large and complex debugger, regardless of the modification scheme and the modification content.

And the dump file analyzer analyzes the acquired core dump file through the determined analysis mode to acquire abnormal information. The exception information in this embodiment includes register information, memory information, task progress, and the like corresponding to the time when the embedded operating system has a problem. And the dump file parser can provide different types of exception information calling interfaces for the protocol debugging module according to the types of the exception information. For example, a read-write register call interface is provided for register information, a read-write memory call interface is provided for memory information, and a read-write task process call interface is provided for task process information, and the interfaces support the RSP protocol.

Optionally, the debugger is specifically configured to determine a debugging type, and send a debugging instruction corresponding to the debugging type to the local network communication service module of the local debugging adapter according to the debugging type; the local network communication service module is specifically used for calling the protocol debugging module when a debugging instruction is received, acquiring abnormal information corresponding to the debugging type and then sending the abnormal information to the debugger; and the protocol debugging module is specifically used for calling an abnormal information calling interface which is provided by the dump file analyzer and corresponds to the debugging type according to the debugging type corresponding to the debugging instruction, acquiring the abnormal information of the corresponding type through the calling interface, and sending the abnormal information to the local network communication service module.

Specifically, since the debugging type includes register debugging, memory debugging, and task process debugging, when the debugger specifically determines that the debugging type is register debugging, a debugging instruction corresponding to the debugging type is sent to the local network communication service module of the local debugging adapter according to the debugging type: the register is requested to be read, and the local network communication service module calls the protocol debugging module to acquire abnormal information corresponding to the debugging type when receiving the debugging instruction: and sending the register information to a debugger. After the protocol debugging module determines that the debugging instruction is received, the protocol debugging module calls a read-write register calling interface provided by a dump file parser according to a debugging type corresponding to the debugging instruction, for example, register debugging in the present example, and obtains the register exception information through the calling interface. Although the dump file parser can parse core dump files with different formats to obtain register exception data, the register exception data may not be recognized if directly transmitted to the GDB debugger, for example, there is a messy code. The protocol debugging module carries out RSP protocol adaptation on the abnormal data acquired by analysis, converts the abnormal data into a data form meeting the transmission requirement of the RSP protocol, and then sends the data form to the network communication service module, so that the GDB debugger can identify the abnormal information of the register. Of course, the present embodiment is only described by taking register debugging as an example, and for other debugging types, the debugging process is substantially the same as the above process, and is not described in detail in the present embodiment.

EXAMPLE III

Fig. 3 is a flowchart of a debugging method of an embedded system core dump provided by an embodiment of the present invention, which may be executed by a debugging apparatus of the embedded system core dump in an embodiment of the present invention, wherein a debugger and a local debugging adapter are included in a debugging transpose of a core dump file, and the debugger is configured in a remote debugging mode to establish a communication connection with a locally located debugging adapter through remote communication. As shown in fig. 3, the method specifically includes the following operations:

step S101, the debugger sends a debugging instruction to the local debugging adapter.

Optionally, before the debugger sends the debug instruction to the local debug adapter, the method further includes: the debugger sends a connection command to the local debugging adapter to establish communication connection with the local debugging adapter; the connection command includes communication port information of the local debugging adapter.

The host where the local debugging adapter is located may provide a Transmission Control Protocol (TCP) server, so that the debugger may establish a communication connection with the local debugging adapter through a remote communication manner based on the TCP server before sending a debugging instruction to the local debugging adapter. For example, the debugger sends a connect command target remote127.0.0.1 to the local debug adapter: 2332, where the connection command includes the new communication port information of the local debug adapter as: the communication port 2332, after receiving the connection command, the local debug adapter establishes a communication connection with the debugger by calling the communication port 2332.

Wherein the types of debug instructions include: register debugging, memory debugging and task process debugging, the specific type of the adjusting instruction is not limited in the embodiment.

And S102, the local debugging adapter analyzes the core dump file of the embedded system to obtain abnormal information, and sends the abnormal information to the debugger according to the debugging instruction.

Optionally, the analyzing, by the local debug adapter, the core dump file of the embedded system to obtain the exception information, and sending the exception information to the debugger according to the debug instruction, which may include: the local debugging adapter analyzes a core dump file of the embedded system by using a dump file analyzer to obtain abnormal information; the local debugging adapter carries out protocol adaptation processing on the abnormal information according to a protocol format supported by the debugger by utilizing a protocol debugging module; the local debugging adapter establishes communication connection with the debugger by using the local network communication service module and sends the abnormal information after the protocol adaptation processing to the debugger.

Optionally, the dump file parser supports parsing operation on the core dump file in one or more formats; and the dump file parser provides different types of abnormal information calling interfaces for the protocol debugging module according to the types of the abnormal information.

Specifically, the core dump file parser in this embodiment is specifically configured to obtain a core dump file generated by an embedded system, and support parsing operations on the core dump file in one or more formats, for example, after determining that the obtained core dump file is generated by an embedded Linux operating system, the format of the obtained core dump file is determined to be a core dump file by identifying the core dump file. Because the core dump files with different format types correspond to different analysis modes, the dump file analyzer can specifically determine the analysis mode according to the format type by querying an analysis list, wherein the analysis list specifically includes a corresponding relationship between the format type of the dump file and the analysis mode. And in the parsing manner, specifically for a format type that is partially unsupported, the specified content in the parsing program code included in the dump file parser may be modified to adapt to different formats, and of course, when the format type of the dump file is supported by the debugger, the parsing program code does not need to be modified normally.

And the dump file analyzer analyzes the acquired core dump file through the determined analysis mode to acquire abnormal information. The exception information in this embodiment includes register information, memory information, task progress, and the like corresponding to the time when the embedded operating system has a problem. And the dump file parser can provide different types of exception information calling interfaces for the protocol debugging module according to the types of the exception information. For example, a read-write register call interface is provided for register information, a read-write memory call interface is provided for memory information, and a read-write task process call interface is provided for task process information, and the interfaces support the RSP protocol.

Optionally, the debugger is specifically configured to determine a debugging type, and send a debugging instruction corresponding to the debugging type to the local network communication service module of the local debugging adapter according to the debugging type; the local network communication service module is specifically used for calling the protocol debugging module when a debugging instruction is received, acquiring abnormal information corresponding to the debugging type and then sending the abnormal information to the debugger; and the protocol debugging module is specifically used for calling an abnormal information calling interface which is provided by the dump file analyzer and corresponds to the debugging type according to the debugging type corresponding to the debugging instruction, acquiring the abnormal information of the corresponding type through the calling interface, and sending the abnormal information to the local network communication service module.

The Debugger in this embodiment specifically includes a GNU Debugger (GDB), and a Protocol format supported by the Debugger includes a Remote Serial Protocol (RSP), and the Protocol debugging module and the local network communication service module communicate with each other by using a Modeling Interface (MI) Protocol.

Step S103, the debugger receives the exception information sent by the local debugging adapter.

In this embodiment, the debugger may adopt a remote debugging mode, and receive the exception information sent by the local debugging adapter based on a remote communication mode.

It should be noted that, as for the debugging method of the core dump of the embedded system, reference may be made to specific functions of each module disclosed in the foregoing embodiments, and details are not described in this embodiment again.

According to the technical scheme of the embodiment of the invention, the local debugging adapter is added to analyze the core dump file of the embedded system to obtain the abnormal information, and the debugger only needs to adopt the remote debugging mode to obtain the abnormal information, so that the problems of difficulty and cost increase due to the fact that the debugger is directly used for debugging and analyzing and a great amount of codes need to be modified to adapt to the analysis of dump files of different formats are solved, and therefore, the difficulty in realizing the core dump and the development cost can be reduced by utilizing the scheme of the embodiment of the invention.

It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An apparatus for debugging a core dump of an embedded system, comprising: the debugger is configured to be in a remote debugging mode so as to establish communication connection with the local debugging adapter located locally through remote communication;

the debugger is used for sending a debugging instruction to the local debugging adapter and receiving abnormal information sent by the local debugging adapter;

the local debugging adapter is used for analyzing a core dump file of the embedded system to obtain abnormal information and sending the abnormal information to the debugger according to the debugging instruction.

2. The apparatus of claim 1, wherein the local debug adapter comprises: the system comprises a dump file analyzer, a protocol debugging module and a local network communication service module;

the dump file analyzer is used for analyzing a core dump file of the embedded system to obtain abnormal information;

the protocol debugging module is used for carrying out protocol adaptation processing on the abnormal information according to a protocol format supported by the debugger;

the local network communication service module is used for establishing communication connection with the debugger and sending the abnormal information after protocol adaptation processing to the debugger.

3. The apparatus of claim 2,

the dump file parser supports parsing operation on core dump files in one or more formats;

and the dump file parser provides different types of abnormal information calling interfaces for the protocol debugging module according to the types of the abnormal information.

4. The apparatus of claim 3,

the debugger is specifically used for determining a debugging type and sending a debugging instruction corresponding to the debugging type to a local network communication service module of the local debugging adapter according to the debugging type;

the local network communication service module is specifically used for calling the protocol debugging module when a debugging instruction is received, acquiring abnormal information corresponding to a debugging type and then sending the abnormal information to the debugger;

the protocol debugging module is specifically configured to call an abnormal information calling interface corresponding to a debugging type provided by the dump file parser according to the debugging type corresponding to the debugging instruction, acquire abnormal information of a corresponding type through the calling interface, and send the abnormal information to the local network communication service module.

5. The apparatus of claim 3 or 4, wherein the anomaly information comprises: register information, memory information and task processes; the debugging types comprise: register debugging, memory debugging and task process debugging.

6. The apparatus of claim 1, wherein the establishing a communication connection with the local debug adapter located locally through remote communication comprises:

the debugger transmits a connection command to the local debugging adapter to establish communication connection with the local debugging adapter; wherein, the connection command includes communication port information of the local debugging adapter.

7. The apparatus of claim 2,

the debugger comprises a GDB debugger;

the debugger supports a protocol format comprising a GDB RSP protocol;

and the protocol debugging module and the local network communication service module are communicated by adopting a modeling interface MI protocol.

8. A debugging method of an embedded system core dump is applied to a debugging device comprising a debugger and a local debugging adapter, wherein the debugger is configured to be in a remote debugging mode so as to establish communication connection with the local debugging adapter located locally through remote communication; the method comprises the following steps:

the debugger sends a debugging instruction to the local debugging adapter;

the local debugging adapter analyzes a core dump file of the embedded system to obtain abnormal information, and sends the abnormal information to the debugger according to the debugging instruction;

and the debugger receives the exception information sent by the local debugging adapter.

9. The method of claim 8, wherein the parsing, by the local debug adapter, a core dump file of the embedded system to obtain exception information, and sending the exception information to the debugger according to the debug instruction comprises:

the local debugging adapter analyzes a core dump file of the embedded system by using a dump file analyzer to obtain abnormal information;

the local debugging adapter carries out protocol adaptation processing on the abnormal information according to a protocol format supported by the debugger by utilizing a protocol debugging module;

the local debugging adapter establishes communication connection with the debugger by using a local network communication service module, and sends the abnormal information after protocol adaptation processing to the debugger.

10. The method of claim 8, wherein before the debugger sends debug instructions to the local debug adapter, further comprising:

the debugger transmits a connection command to the local debugging adapter to establish communication connection with the local debugging adapter; wherein, the connection command includes communication port information of the local debugging adapter.

CN202011360077.1A 2020-11-27 2020-11-27 Debugging device and method for core dump of embedded system Active CN112667412B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011360077.1A CN112667412B (en) 2020-11-27 2020-11-27 Debugging device and method for core dump of embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011360077.1A CN112667412B (en) 2020-11-27 2020-11-27 Debugging device and method for core dump of embedded system

Publications (2)

Publication Number Publication Date
CN112667412A true CN112667412A (en) 2021-04-16
CN112667412B CN112667412B (en) 2024-09-06

Family

ID=75403740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011360077.1A Active CN112667412B (en) 2020-11-27 2020-11-27 Debugging device and method for core dump of embedded system

Country Status (1)

Country Link
CN (1) CN112667412B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118093437A (en) * 2024-04-23 2024-05-28 青岛国创智能家电研究院有限公司 Method and device for debugging embedded equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060048006A1 (en) * 2004-08-31 2006-03-02 Wenkwei Lou Wireless remote firmware debugging for embedded wireless device
CN1885275A (en) * 2005-06-20 2006-12-27 中兴通讯股份有限公司 Embedded system and real-time monitoring and processing method thereof
CN101122880A (en) * 2007-09-17 2008-02-13 福建星网锐捷网络有限公司 Embedded type system of embed type debugging device and embedded type system debugging method
US9529662B1 (en) * 2015-07-31 2016-12-27 Netapp, Inc. Dynamic rule-based automatic crash dump analyzer
US20170286257A1 (en) * 2016-03-29 2017-10-05 International Business Machines Corporation Remotely debugging an operating system
CN109564539A (en) * 2016-08-03 2019-04-02 英特尔公司 Remote debugging and management
US20190235890A1 (en) * 2019-02-15 2019-08-01 Matthew A. Schnoor Method for dynamically provisioning virtualized functions in a usb device by means of a virtual usb hub
CN111258878A (en) * 2018-12-03 2020-06-09 阿里巴巴集团控股有限公司 Application testing method, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060048006A1 (en) * 2004-08-31 2006-03-02 Wenkwei Lou Wireless remote firmware debugging for embedded wireless device
CN1885275A (en) * 2005-06-20 2006-12-27 中兴通讯股份有限公司 Embedded system and real-time monitoring and processing method thereof
CN101122880A (en) * 2007-09-17 2008-02-13 福建星网锐捷网络有限公司 Embedded type system of embed type debugging device and embedded type system debugging method
US9529662B1 (en) * 2015-07-31 2016-12-27 Netapp, Inc. Dynamic rule-based automatic crash dump analyzer
US20170286257A1 (en) * 2016-03-29 2017-10-05 International Business Machines Corporation Remotely debugging an operating system
CN109564539A (en) * 2016-08-03 2019-04-02 英特尔公司 Remote debugging and management
CN111258878A (en) * 2018-12-03 2020-06-09 阿里巴巴集团控股有限公司 Application testing method, device, equipment and storage medium
US20190235890A1 (en) * 2019-02-15 2019-08-01 Matthew A. Schnoor Method for dynamically provisioning virtualized functions in a usb device by means of a virtual usb hub

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ANDREAS EHLIAR; JACOB SIVERSKOG: ""Using partial reconfigurability to aid debugging of FPGA designs"", 《2011 VII SOUTHERN CONFERENCE ON PROGRAMMABLE LOGIC (SPL)》, 31 May 2011 (2011-05-31) *
李孔泽: ""基于统计方法的远程通信数据传输实验系统"", 《电子设计工程》, 20 July 2019 (2019-07-20) *
许世明;周卫东;许波;: "电话网管理系统嵌入式协议适配器", 电信快报, no. 01, 25 February 2007 (2007-02-25) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118093437A (en) * 2024-04-23 2024-05-28 青岛国创智能家电研究院有限公司 Method and device for debugging embedded equipment

Also Published As

Publication number Publication date
CN112667412B (en) 2024-09-06

Similar Documents

Publication Publication Date Title
CN111083225B (en) 2022-09-30 Data processing method and device in Internet of things platform and Internet of things platform
CN113533887B (en) 2024-01-26 Intelligent debugging method and system for power distribution terminal
US20150100830A1 (en) 2015-04-09 Method and system for selecting and executing test scripts
JP2014157505A (en) 2014-08-28 Controller, information processing device, and program
CN113067747A (en) 2021-07-02 Link abnormity tracing method, cluster, node and system
CN112463511B (en) 2022-06-07 Automatic test system and test method for serial port equipment of Internet of things
CN112667412B (en) 2024-09-06 Debugging device and method for core dump of embedded system
CN112822254A (en) 2021-05-18 Data acquisition and transmission system and method for remotely upgrading and allocating parameters on line
CN111339051A (en) 2020-06-26 Log processing method, system, device and storage medium
CN116521411B (en) 2023-11-17 Method, device and medium for detecting program error and resetting embedded device
CN117290243A (en) 2023-12-26 Protocol command testing method, device, equipment and storage medium
CN113688055B (en) 2023-08-22 Single DSP equipment testing arrangement based on DSS
CN110096281A (en) 2019-08-06 Code analysis method, resolution server, storage medium and device
CN112925700A (en) 2021-06-08 Program debugging method, device and system and embedded equipment
CN113965447A (en) 2022-01-21 Online cloud diagnosis method, device, system, equipment and storage medium
CN119127723B (en) 2025-02-07 Interface test method, system, terminal and medium for connecting multiple hong-Mongolian devices
CN112114868B (en) 2023-10-27 Real-time control device for task of working vehicle and protocol adaptation method thereof
CN113419945B (en) 2022-07-01 Interconnection-based automatic testing method and system
CN115421824B (en) 2023-05-02 Micro-service execution engine, running method and application method
CN112711238B (en) 2022-06-21 Data replacement method, device, device and storage medium
CN119312085A (en) 2025-01-14 Test method, device, debugger, equipment, storage medium and program product
CN119690697A (en) 2025-03-25 Communication bridge-based Web terminal and Native terminal interaction method, device, equipment and medium
CN119109760A (en) 2024-12-10 A system and method for quickly locating gateway failure
CN117724962A (en) 2024-03-19 Vehicle remote upgrade test method, device and equipment
CN115391007A (en) 2022-11-25 Task processing method and device based on multiple cloud servers and server

Legal Events

Date Code Title Description
2021-04-16 PB01 Publication
2021-04-16 PB01 Publication
2021-05-04 SE01 Entry into force of request for substantive examination
2021-05-04 SE01 Entry into force of request for substantive examination
2024-09-06 GR01 Patent grant
2024-09-06 GR01 Patent grant