CN102508769A - Debugged program debugging method based on core-implanted debugger - Google Patents

Debugged program debugging method based on core-implanted debugger Download PDF

Info

Publication number
CN102508769A
CN102508769A CN2011103069058A CN201110306905A CN102508769A CN 102508769 A CN102508769 A CN 102508769A CN 2011103069058 A CN2011103069058 A CN 2011103069058A CN 201110306905 A CN201110306905 A CN 201110306905A CN 102508769 A CN102508769 A CN 102508769A
Authority
CN
China
Prior art keywords
debugger
human
computer interaction
interaction interface
module
Prior art date
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.)
Pending
Application number
CN2011103069058A
Other languages
Chinese (zh)
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 Ruian Technology Co Ltd
Original Assignee
Beijing Ruian 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.)
Filing date
Publication date
Application filed by Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN2011103069058A priority Critical patent/CN102508769A/en
Publication of CN102508769A publication Critical patent/CN102508769A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a debugged program debugging method based on a core-implanted debugger, belonging to the technical field of computer software. The method comprises the following steps: (1) the debugger is divided into a core work module and a human-computer interaction interface module; (2) the core work module and the human-computer interaction interface module are placed into two different processes of one host respectively for realizing; (3) a debugging command received by the human-computer interaction interface is transmitted into a host process in which the core work module is positioned by the human-computer interaction interface through process communication, and then is transmitted to the core work module of the debugger through the host process; and (4) debugging data acquired from a debugged process in the debugging process is transmitted to the core work module of the debugger through process communication by the host process, and then is analyzed and displayed by the human-computer interaction interface module. The invention provides the debugging method aiming at the anti-debugging method for detecting process of a debugger, can fast develop the human-computer interaction interface, and improve the debugging expansibility.

Description

A kind of debugged program debugging method based on the pouring-in debugger of core
Technical field
The invention belongs to the reverse debugging technique of computer program field, relate to a kind of method of work that can debugged program and debugger be isolated fully.
Technical background
The debugger that existing market is popular has a lot, can realize computing machine the assembler code dynamic debugging and the internal memory of program compiler through the mode of dynamic decoding, register, and the demonstration of stack information has made things convenient for the debugging of staff to debugger.
But all there is a problem in these debuggers, and debugged program and debugger directly articulate.So just produced a problem, debugged program can detect the existence of debugger through relevant technological means, thereby increases some anti-debug functioies to certain debugger.
Simultaneously, because the kernel program and the human-computer interaction interface of debugger intercouple, be difficult to utilize existing debugger to carry out the exploitation of new human-computer interaction interface.
Summary of the invention
The present invention is directed to debugger and debugged program and directly articulate the problem that can't change the man-machine interaction page with the debugger core function fast; A kind of debugged program debugging method based on the pouring-in debugger of core has been proposed; When having isolated debugger and debugged program fully, also increased the extendability of debugger human-computer interaction interface.The present invention is divided into core work module and two functional modules of human-computer interaction interface through having debugger now; Be put into respectively in two detached processes; Wherein the function of debugger core operational module is to obtain tune-up datas such as the decoding information of debugged program in the debug process, memory information, stack information, register information to pass to the human-computer interaction interface module by host's process through process communication, and the human-computer interaction interface module is used to resolve the output data of debugged program and the debug command that receives user's input.
Major technique of the present invention thes contents are as follows:
1) is placed on the core work module of debugger and human-computer interaction interface module respectively in two detached processes of same host's main frame and realizes; The debugger core operational module is injected in any process of host's main frame, and making the observable debugger process of debugged program have infinite kind maybe.
2) the human-computer interaction interface module is placed on independently in the interface process, will be imported in host's process by the debug command of interface input through process communication, passes to the debugger core operational module by host's process again, and debugged program is debugged action accordingly.The present invention connects debugged program and any host's process through system kernel, is communicated by letter with interface process by host's process again, has overcome prior art and through system kernel debugger and debugged process has been connected the problem of bringing.Host's process be meant the debugger core operational module parasitic process parent, interface process be independently one be used for interface display and user interactions process.
3) the debugger core operational module is with the decoding information of obtaining from debugged program in the debug process; Memory information; Stack information; Tune-up datas such as register information pass to human-computer interaction interface by host's process through process communication, resolve and be shown to the user by the human-computer interaction interface module according to communication format again.
4) under the situation of the output of following debugger core and input data layout, can develop different human-computer interaction interfaces fast, not need to consider again the logical process flow process of debugger.
Technical scheme of the present invention is:
A kind of debugged program debugging method based on the pouring-in debugger of core the steps include:
1) debugger is divided into core work module and human-computer interaction interface module; Wherein, said core work module is used for obtaining the debugged program debug data of debug process, and said human-computer interaction interface is used to resolve the output data of debugged program and the debug command that receives input;
2) said core work module and said human-computer interaction interface module are placed on respectively in the two different detached processes of same host's main frame realize;
3) said human-computer interaction interface module is imported into the debug command that receives in host's process at said core work module place through process communication; Pass to said debugger core operational module by this host's process again, debugged program is debugged action accordingly;
4) said debugger core operational module passes to said human-computer interaction interface module by host's process through process communication with the tune-up data that obtains from debugged program in the debug process, again by said human-computer interaction interface module parses and demonstration.
Further, said debugged program and said core work module are arranged in same process.
Further, said debugged program is arranged in a detached process of said host's main frame.
Further, said tune-up data comprises: decoding information, memory information, stack information and register information.
Further, said debugger core operational module is injected into any process of said host's main frame through the mode of DLL injection.
Further, select said host's process through said human-computer interaction interface module.
Further, said core work module starts said debugged program through the debugged device Program path from said human-computer interaction interface module input.
Compared with prior art, the invention has the beneficial effects as follows:
After adopting the present invention, the developer can utilize the debugger core module to be injected into the debugged program of debugging in host's process.Relevant Debugging message and debug command can be passed through the corresponding interface input and output; The developer can develop corresponding human-computer interaction interface fast according to different application sublimity like this; And in this course of work, debugger and debugged program are isolated fully, and debugged program can only detect host program; And can't detect real debugger program, make the relevant anti-adjustment method complete failure that detects to the debugger process.The present invention realizes the isolation fully of debugger and debugged program, let debugged program instrumentation to debug procedures have infinite maybe.
Can improve the extendability of debugging fast according to the needs exploit person machine interactive interface of environment.
Description of drawings
Fig. 1 injects the principle of work structural drawing of debugger for core of the present invention;
Fig. 2 injects the applied environment synoptic diagram of debugger for core of the present invention.
Embodiment
In conjunction with accompanying drawing, further set forth embodiment of the present invention: be illustrated in figure 1 as the fundamental diagram that core of the present invention is injected debugger, its workflow is as shown in Figure 2.
1) is injected into any host's process to the debugger core operational module through the mode that DLL injects.
2) human-computer interaction interface is loaded into the debugger core operational module in host's process of user's selection, establishes a communications link through the communication functions that has defined.
3) start the current stress state that human-computer interaction interface inquiry debugger core operational module sends.The stress state of core work module only sends once, and information is placed in the memory shared section, waits for that interface process reaches and be shown to the user.
4) the debugged device Program path with user's input passes to the debugger core operational module, and the debugger core operational module starts debugged program and begins to get into debugging mode.
5) man-machine interface receives the debugged program related data of debugger core output, resolves and be shown to the user.
6) carry out the host's process that sends in human-computer interaction interface input debugging, pass to debugger core by host's process and carry out corresponding debugging action.

Claims (7)

1. the debugged program debugging method based on the pouring-in debugger of core the steps include:
1) debugger is divided into core work module and human-computer interaction interface module; Wherein, said core work module is used for obtaining the debugged program debug data of debug process, and said human-computer interaction interface is used to resolve the output data of debugged program and the debug command that receives input;
2) said core work module and said human-computer interaction interface module are placed on respectively in the two different detached processes of same host's main frame realize;
3) said human-computer interaction interface module is imported into the debug command that receives in host's process at said core work module place through process communication; Pass to said debugger core operational module by this host's process again, debugged program is debugged action accordingly;
4) said debugger core operational module passes to said human-computer interaction interface module by host's process through process communication with the tune-up data that obtains from debugged program in the debug process, again by said human-computer interaction interface module parses and demonstration.
2. the method for claim 1 is characterized in that said debugged program and said core work module are arranged in same process.
3. the method for claim 1 is characterized in that said debugged program is arranged in a detached process of said host's main frame.
4. like claim 1 or 2 or 3 described methods, it is characterized in that said tune-up data comprises: decoding information, memory information, stack information and register information.
5. method as claimed in claim 4 is characterized in that said debugger core operational module is injected into any process of said host's main frame through the mode of DLL injection.
6. method as claimed in claim 4 is characterized in that selecting said host's process through said human-computer interaction interface module.
7. method as claimed in claim 6 is characterized in that said core work module starts said debugged program through the debugged device Program path from said human-computer interaction interface module input.
CN2011103069058A 2011-10-11 2011-10-11 Debugged program debugging method based on core-implanted debugger Pending CN102508769A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103069058A CN102508769A (en) 2011-10-11 2011-10-11 Debugged program debugging method based on core-implanted debugger

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103069058A CN102508769A (en) 2011-10-11 2011-10-11 Debugged program debugging method based on core-implanted debugger

Publications (1)

Publication Number Publication Date
CN102508769A true CN102508769A (en) 2012-06-20

Family

ID=46220861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103069058A Pending CN102508769A (en) 2011-10-11 2011-10-11 Debugged program debugging method based on core-implanted debugger

Country Status (1)

Country Link
CN (1) CN102508769A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834587A (en) * 2014-02-11 2015-08-12 珠海格力电器股份有限公司 RS-485 bus slave computer online debugging method and system
CN106021106A (en) * 2016-05-19 2016-10-12 北京金山安全软件有限公司 Process control method and user terminal
CN109582317A (en) * 2018-11-30 2019-04-05 百度在线网络技术(北京)有限公司 Method and apparatus for debugging boarding application

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6671875B1 (en) * 2000-09-21 2003-12-30 International Business Machines Corporation Manipulation of an object-oriented user interface process to provide rollback of object-oriented scripts from a procedural business logic debugger
CN1767453A (en) * 2004-10-31 2006-05-03 中兴通讯股份有限公司 Automatic test method and system
CN1841336A (en) * 2005-03-31 2006-10-04 联想(北京)有限公司 Computer testing method
US20090089622A1 (en) * 2007-09-27 2009-04-02 International Business Machines Corporation Providing Customizable, Process-Specific Just-In-Time Debugging in an Operating System

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6671875B1 (en) * 2000-09-21 2003-12-30 International Business Machines Corporation Manipulation of an object-oriented user interface process to provide rollback of object-oriented scripts from a procedural business logic debugger
CN1767453A (en) * 2004-10-31 2006-05-03 中兴通讯股份有限公司 Automatic test method and system
CN1841336A (en) * 2005-03-31 2006-10-04 联想(北京)有限公司 Computer testing method
US20090089622A1 (en) * 2007-09-27 2009-04-02 International Business Machines Corporation Providing Customizable, Process-Specific Just-In-Time Debugging in an Operating System

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834587A (en) * 2014-02-11 2015-08-12 珠海格力电器股份有限公司 RS-485 bus slave computer online debugging method and system
CN104834587B (en) * 2014-02-11 2018-09-11 珠海格力电器股份有限公司 The method and system of on-line debugging RS-485 bus slave computers
CN106021106A (en) * 2016-05-19 2016-10-12 北京金山安全软件有限公司 Process control method and user terminal
CN106021106B (en) * 2016-05-19 2019-05-28 珠海豹趣科技有限公司 A kind of course control method and user terminal
CN109582317A (en) * 2018-11-30 2019-04-05 百度在线网络技术(北京)有限公司 Method and apparatus for debugging boarding application
CN109582317B (en) * 2018-11-30 2022-02-08 百度在线网络技术(北京)有限公司 Method and apparatus for debugging hosted applications

Similar Documents

Publication Publication Date Title
EP3593250B1 (en) Debugging system and method
CN100573537C (en) A kind of SOC chip system grade verification system and method
CN104050080A (en) Method and system for debugging linux kernel in user mode
CN101262681A (en) Automatic testing mobile terminal and its implementation method
CN101976187A (en) Stack tracing method and device in decompilation process and decompiler
CN102917242A (en) Testing system and testing method of multi-format video decoder
CN201867793U (en) Debugging system of basic input/output system
CN104008024A (en) Dynamic reconstruction technology application platform based on FPGA
CN103713993A (en) Chip verification platform and method for implementing chip testing
CN102722438B (en) Kernel debugging method and equipment
CN102508769A (en) Debugged program debugging method based on core-implanted debugger
CN114707444B (en) Method for compiling verification system, electronic device and storage medium
CN101162438A (en) Regulating technology of built-in processor
CN104063297A (en) Method and device capable of diagnosing computer hardware through USB interfaces
CN103714190A (en) Simple efficient on-line simulation method and simple efficient on-line simulation interface circuit
CN104050069A (en) Automated testing method for achieving correctness of MIPS processor by judging Verilog based on Mars
Goeders et al. Allowing software developers to debug HLS hardware
CN104715095A (en) Graphical clock quality detecting and analyzing method
Feng et al. Design and application of reusable SoC verification platform
El-Moursy et al. Efficient embedded SoC hardware/software codesign using virtual platform
JP2003162426A (en) Computer system with cooperative debug circuit for multiple cpu and debug method
CN203117963U (en) Debugging system and device for providing graphical pin interface
CN107526585B (en) Scala-based FPGA development platform and debugging and testing method thereof
CN102323903B (en) SOC (system-on-chip) chip simulation system and method
Jianping et al. High-speed FPGA-based SOPC application for currency sorting system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120620