Can we write instructions given for the processor?

Given the initial state of a user-driven program in memory, can we write instructions provided to the processor, reload the program to its original state, and reproduce the processor instructions and run the program, as it was when the user used it, without the user?

I apologize if this question is poorly written or confused.

+4
source share
4 answers

If the user really interacted with the program, and you did not save the input history (or other forms of interaction), there is clearly no answer.

A full execution trace can be huge (1 gigabyte per second ...)

+2
source

! . , .

, , . , , " ". - , , .

nexti stepi GDB . disassemble, , . LLDB MSVC.

, " :"

enter image description here

Windows, , Windows , .

, - .

, , , , . - , , . , , , .

: http://www.unknownroad.com/rtfm/gdbtut/gdbadvanced.html#STEPI

+1

, . , . , . , , .

, - , ​​ .

, . (-) - . , . , , X-Windows, X Windows.

. . Linux-. Wikipedia : http://en.wikipedia.org/wiki/List_of_GUI_testing_tools

Also look at sikuli http://www.sikuli.org/

0
source

The answer to your question is NO. Assuming at the time that your system has only one process, the system will still respond to interrupts. Such interruptions can occur at any time. It would be pointless to reproduce interrupt handling without the same external event occurring at the same relative time.

0
source

All Articles