View Single Post
showdax
Senior Member
Join Date: Dec 2004
Old 01-04-2006 , 10:55  
Reply With Quote #2

I prefer using objdump for disassembling files under Linux. It's pretty easy to use:
Code:
~/usr/srcds/dod/bin$ objdump -d server_i486.so > server_i486.so.objdump
~/usr/srcds/dod/bin$
Then just search for your function:
Code:
00860670 <_ZN10CDODPlayer10DODRespawnEv>:
  860670:       56                      push   %esi
  860671:       ba 01 00 00 00          mov    $0x1,%edx
  860676:       53                      push   %ebx
  860677:       83 ec 14                sub    $0x14,%esp
  86067a:       8b 5c 24 20             mov    0x20(%esp,1),%ebx
  86067e:       8b 0b                   mov    (%ebx),%ecx
  860680:       89 54 24 04             mov    %edx,0x4(%esp,1)
  860684:       89 1c 24                mov    %ebx,(%esp,1)
  860687:       ff 91 18 04 00 00       call   *0x418(%ecx)
  86068d:       8b 03                   mov    (%ebx),%eax
  86068f:       89 1c 24                mov    %ebx,(%esp,1)
  860692:       ff 90 60 04 00 00       call   *0x460(%eax)
  860698:       8b 93 84 0e 00 00       mov    0xe84(%ebx),%edx
  86069e:       85 d2                   test   %edx,%edx
  8606a0:       74 2e                   je     8606d0 <_ZN10CDODPlayer10DODRespawnEv+0x60>
...
showdax is offline
Send a message via MSN to showdax