摘要 |
<p>A debug method is provided, the method comprises: a fault handling function address is modified to a user-defined fault handling function address (101), the fault handling function address corresponds to a page attribute fault in an interrupt descriptor table of a system processor; when a designated page attribute fault appears in a destination program, field information is obtained (102); the field information is saved to a virtue execution buffer area corresponding to the current thread (103); and the field information in the buffer area is saved by pushing in a stack (104); a pointer of the destination program extended instruction is judged whether it matches with a preset breakpoint address of a fault page (105); if the pointer matches with the preset breakpoint address, the debug method interacts with a user (106); otherwise, the instruction pointed by the pointer of the destination program extended instruction is copied to the virtue execution buffer area corresponding to the current thread and constructed; the field information is popped up from the stack, the instruction in the buffer area is executed, and the address is judged repeatedly whether it matches the preset breakpoint address. A corresponding debug device is also provided, and the device has an advantage of higher concealment.</p> |
申请人 |
HUAWEI TECHNOLOGIES CO., LTD.;ZHANG, DACHENG;LI, YICHAO;LIU, DAN;CHEN, QINYUAN;LIU, ZEPENG;QIU, BINGXUE |
发明人 |
ZHANG, DACHENG;LI, YICHAO;LIU, DAN;CHEN, QINYUAN;LIU, ZEPENG;QIU, BINGXUE |