Skip to content

Commit

Permalink
comment out the ptraceme command due to problems in OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbinit committed Aug 13, 2011
1 parent e2dc882 commit be9d488
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions gdbinit
Original file line number Diff line number Diff line change
Expand Up @@ -2136,26 +2136,26 @@ Create a runtime trace of target.
Log overwrites(!) the file ~/gdb_trace_run.txt.
end

define ptraceme
catch syscall ptrace
commands
if ($64BITS == 0)
if ($ebx == 0)
set $eax = 0
continue
end
else
if ($rdi == 0)
set $rax = 0
continue
end
end
end
set $ptrace_bpnum = $bpnum
end
document ptraceme
Hook ptrace to bypass PTRACE_TRACEME anti debugging technique
end
#define ptraceme
# catch syscall ptrace
# commands
# if ($64BITS == 0)
# if ($ebx == 0)
# set $eax = 0
# continue
# end
# else
# if ($rdi == 0)
# set $rax = 0
# continue
# end
# end
# end
# set $ptrace_bpnum = $bpnum
#end
#document ptraceme
#Hook ptrace to bypass PTRACE_TRACEME anti debugging technique
#end

define rptraceme
if ($ptrace_bpnum != 0)
Expand Down

0 comments on commit be9d488

Please sign in to comment.