发明名称 SYSTEM AND METHOD FOR DEBUGGING FIRMWARE/SOFTWARE BY GENERATING TRACE DATA
摘要 A method for debugging firmware/software by generating trace data includes the following steps: running a debug module in a power-on stage in a test system, to record a load address and a branch instruction execution record set of a tested module into an area for temporary storage; accessing, by an analyzer, in an operating system stage in the area for temporary storage, the load address and the branch instruction execution record set and accessing a program debug symbol table, where the program debug symbol table is generated when source program code is compiled; and finding, by the analyzer, an original source file, a function name, and line numbers of executed codes from the program debug symbol table according to the load address and the branch instruction execution record set to generate an analysis report that includes a program execution path and a program code coverage.
申请公布号 US2016110281(A1) 申请公布日期 2016.04.21
申请号 US201514885585 申请日期 2015.10.16
申请人 Insyde Software Corporation 发明人 CHENG Ying Chin
分类号 G06F11/36 主分类号 G06F11/36
代理机构 代理人
主权项 1. A method for debugging firmware/software by generating trace data, the method comprising the following steps: running a debug tool program in a main control system, running a debug engine in a power-on stage in a test system to configure an area of a first memory used for temporary storage, and recording a load address and a branch instruction execution record set into the area for temporary storage, wherein the load address is an address of a module, which is loaded in the first memory, of an embedded system, and the branch instruction execution record set comprises a plurality of branch instruction execution records that record addresses before and after a branch instruction is executed; sending, by the main control system, a debug instruction to the test system, to collect the load address and the branch instruction execution record set in the area for temporary storage of the test system and store the load address and the branch instruction execution record set in a second memory; accessing, by an analyzer of the main control system, the load address, the branch instruction execution record set, and a program debug symbol table in the second memory, wherein the program debug symbol table is generated when source program code of the embedded system is compiled; and finding, by the analyzer, an original source file, a function name, and line numbers of executed codes from the program debug symbol table according to the load address and the branch instruction execution record set to generate an analysis report, wherein the analysis report comprises a program execution path and a program code coverage.
地址 Taipei City TW