Skip to content

Instantly share code, notes, and snippets.

@dileks
Created April 18, 2011 19:43
Show Gist options
  • Select an option

  • Save dileks/926021 to your computer and use it in GitHub Desktop.

Select an option

Save dileks/926021 to your computer and use it in GitHub Desktop.
(gdb) x/17i 0xc10206ad
(gdb) x/x 0xc146fd50
0xc146fd50: 0xc10206ad
(gdb) x/17i 0xc10206ad
0xc10206ad <_paravirt_ident_32>: ret
0xc10206ae <_paravirt_ident_64>: ret
0xc10206af <paravirt_patch_nop>: xor %eax,%eax
0xc10206b1 <paravirt_patch_nop+2>: ret
0xc10206b2 <paravirt_patch_ignore>: ret
0xc10206b3 <paravirt_patch_call>: push %esi
0xc10206b4 <paravirt_patch_call+1>: movzwl 0xc(%esp),%esi
0xc10206b9 <paravirt_patch_call+6>: not %esi
0xc10206bb <paravirt_patch_call+8>: test %ecx,%esi
0xc10206bd <paravirt_patch_call+10>: mov 0x10(%esp),%ecx
0xc10206c1 <paravirt_patch_call+14>: jne 0xc10206dc <paravirt_patch_call+41>
0xc10206c3 <paravirt_patch_call+16>: cmp $0x5,%ecx
0xc10206c6 <paravirt_patch_call+19>: jb 0xc10206dc <paravirt_patch_call+41>
0xc10206c8 <paravirt_patch_call+21>: mov 0x8(%esp),%ecx
0xc10206cc <paravirt_patch_call+25>: movb $0xe8,(%eax)
0xc10206cf <paravirt_patch_call+28>: add $0xfffffffb,%edx
0xc10206d2 <paravirt_patch_call+31>: sub %ecx,%edx
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment