{"issue":{"state":"open","created_at":"2011-11-29T20:20:08Z","updated_at":"2011-11-29T20:20:08Z","user":{"gravatar_id":"46e4301a32076d197a37e9007489c1e1","id":1228991,"url":"https://api.github.com/users/milesc","login":"milesc","avatar_url":"https://secure.gravatar.com/avatar/46e4301a32076d197a37e9007489c1e1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":0,"body":"Hi Epsylon3,\r\n\r\nIf you set EIP directly, as in the example below, OllyDbg never again updates the value displayed in the register as you step over other instructions.\r\n\r\nExample:\r\nmov eip, 4016e0\r\nsto\r\n\r\nEIP isn't updated to the next instruction, even though you have stepped.\r\n\r\nThe value eip has been set to is even stored in the .udd.  When you reload the exe in ollydbg, the eip is immediately set to the value you moved into eip, unless you delete the corresponding .udd file before reloading the exe.\r\n\r\n-------------\r\n\r\nAlso, what would be the best way to jump to a certain address, then run until another address is reached, and then finally execute more script commands?\r\n\r\nI've tried things like:\r\nmov eip, 4016e0\r\nbp 4016f6   <--- this is the address of the instruction I'd like to stop on\r\nrun\r\nbc 4016f6\r\ndo more stuff here   <---- I want these script commands to only be run once the program is paused on the breakpoint.\r\n\r\nThanks for any help you can provide.\r\nCraig\r\n\r\n","assignee":null,"id":2392102,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":2,"title":"Unexpected behavior after directly setting EIP","closed_at":null,"html_url":"https://github.com/epsylon3/odbgscript/issues/2","url":"https://api.github.com/repos/epsylon3/odbgscript/issues/2","milestone":null},"action":"opened"}