node/lib/metasm/metasm/debug.rb
def check_pre_run(run_m, *run_a)
		if @dead_process
			del_pid
			return
		elsif @dead_thread
			del_tid
			return
		elsif @state == :running
			return
		end
		@cpu.dbg_check_pre_run(self) if @cpu.respond_to?(:dbg_check_pre_run)
		@breakpoint_cause = nil
		@run_method = run_m
		@run_args = run_a
		@info = nil
		true
	end
# to be called right before resuming execution of the target
# run_m is the method that should be called if the execution is stopped
# due to a side-effect of the debugger (bpx with wrong condition etc)
# returns nil if the execution should be avoided (just deleted the dead thread/process)
to be called right before resuming execution of the target
run_m is the method that should be called if the execution is stopped
due to a side-effect of the debugger (bpx with wrong condition etc)
returns nil if the execution should be avoided (just deleted the dead thread/process)
to be called right before resuming execution of the target run_m is the method that should be called if the execution is stopped due to a side - effect of the debugger ( bpx with wrong condition etc ) returns nil if the execution should be avoided ( just deleted the dead thread / process )
def check_pre_run(run_m, *run_a)
		if @dead_process
			del_pid
			return
		elsif @dead_thread
			del_tid
			return
		elsif @state == :running
			return
		end
		@cpu.dbg_check_pre_run(self) if @cpu.respond_to?(:dbg_check_pre_run)
		@breakpoint_cause = nil
		@run_method = run_m
		@run_args = run_a
		@info = nil
		true
	end
def check_pre_run ( run_m , * run_a ) if @dead_process del_pid return elsif @dead_thread del_tid return elsif @state == :running return end @cpu . dbg_check_pre_run ( self ) if @cpu . respond_to? ( :dbg_check_pre_run ) @breakpoint_cause = nil @run_method = run_m @run_args = run_a @info = nil true end
to be called right before resuming execution of the target
run_m is the method that should be called if the execution is stopped
due to a side-effect of the debugger (bpx with wrong condition etc)
returns nil if the execution should be avoided (just deleted the dead thread/process)
to be called right before resuming execution of the target run_m is the method that should be called if the execution is stopped due to a side - effect of the debugger ( bpx with wrong condition etc ) returns nil if the execution should be avoided ( just deleted the dead thread / process )
run_m
run_a