发明名称 Dynamic debugging method of a software module and corresponding device
摘要 When a module is loaded by the operating system kernel, dynamic information of the module, such as the memory addresses of the different sections of the module allocated by the operating system, is stored in a known variable, which is subsequently accessible by the debugging tool. Furthermore, an interrupt instruction that will allow the debugger to interrupt the running of the operating system following the complete loading of the module is inserted into the debugging tool in such a way as to retrieve the dynamic information necessary for the debugging of the module.
申请公布号 US9600397(B2) 申请公布日期 2017.03.21
申请号 US201414467270 申请日期 2014.08.25
申请人 STMicroelectronics (Grenoble 2) SAS 发明人 Sauzede Nicolas;Nabais Alexandre;Guillochon Florian
分类号 G06F9/44;G06F11/36;G06F9/445 主分类号 G06F9/44
代理机构 Slater Matsil, LLP 代理人 Slater Matsil, LLP
主权项 1. A method for dynamic debugging of an external software module, the method comprising: modifying a loading block of an operating system of a computer system to store in a predetermined variable a memory address and an identifier of each section of the external software module; loading the external software module into a first memory section of a program memory of the computer system by the loading block; attaching an interrupt instruction to an identifier and to a current instruction from the operating system, the interrupt instruction executable following loading of the external software module; storing, by the operating system when the external software module is loaded, the memory address of each section of the external software module allocated by the operating system and the identifier of each section in the predetermined variable in a second memory section of the program memory; when the current instruction occurs, retrieving from the predetermined variable the memory address and the identifier of each section of the external software module by a debugging tool, the debugging tool receiving binary code and associated symbol files of the external software module; and providing, by the debugging tool, the binary code and associated symbol files for each section of the external software module.
地址 Grenoble FR