windbg.info
Home Search
 You are here: arrow Home Forum

Search Our Site

www.windbg.info
Welcome, Guest
Please Login or Register.    Lost Password?
function plus offset question
(1 viewing) 1 Guest
Go to bottom
TOPIC: function plus offset question
#73
chupper (User)
Posts: 3
User Offline

function plus offset question 30 Jul 2010 - 19:20
Hi, when I'm looking at a threads call stack what do the numbers after the function mean?

As indicated below as
libxx!classxx::Perform+0x4fe
and
libxx!classxx::Perform+0x60c

what are the +0x4fe and 0x60c?

Thanks.


2 Id: 330.370 Suspend: 1 Teb: 7ffdc000 Unfrozen
ChildEBP RetAddr
00deff14 7c90df5a ntdll!KiFastSystemCallRet
00deff18 7c8025db ntdll!ZwWaitForSingleObject+0xc
00deff7c 7c802542 kernel32!WaitForSingleObjectEx+0xa8
00deff90 0040da14 kernel32!WaitForSingleObject+0x12
00deffa8 0040db22 libxx!classxx::Perform+0x4fe [s:\path\to\file.cpp @ 2632]
00deffb4 7c80b729 libxx!classxx::Perform+0x60c [s:\path\to\file.cpp @ 2632]
00deffec 00000000 kernel32!BaseThreadStart+0x37
 
  Logged IP
  The administrator has disabled public write access.
#74
huku (Visitor)
Posts: 3
User Offline

Gender: Male GR Hack Location: Greece
Re: function plus offset question 02 Aug 2010 - 17:59
The 0x* numbers are the offsets within a function code where a 'call' instruction is issued.

ntdll!KiFastSystemCallRet
ntdll!ZwWaitForSingleObject+0xc

This means that ZwWaitForSingleObject calls KiFastSystemCallRet via a 'call' instruction located 0xc bytes away from the start of ZwWaitForSingleObject's code.
 
“Believing would be easier if God would show himself by depositing a
million dollars in a Swiss bank account in my name”
 
  Logged IP
  The administrator has disabled public write access.
#76
chupper (User)
Posts: 3
User Offline

Re: function plus offset question 02 Aug 2010 - 21:41
And you're talking bytes as in the function + number of bytes of compiled code at runtime/debugging, not number of bytes of src correct?

Thanks.
 
  Logged IP
  The administrator has disabled public write access.
#77
huku (Visitor)
Posts: 3
User Offline

Gender: Male GR Hack Location: Greece
Re: function plus offset question 02 Aug 2010 - 22:38
Yeap... exactly.
 
“Believing would be easier if God would show himself by depositing a
million dollars in a Swiss bank account in my name”
 
  Logged IP
  The administrator has disabled public write access.
#78
chupper (User)
Posts: 3
User Offline

Re: function plus offset question 02 Aug 2010 - 23:04
Great! Thanks for the help. I have so much trouble sorting through these details in the normal help file / chm.

Thanks again!
 
  Logged IP
  The administrator has disabled public write access.
Go to top
  up top of page up  
 

Copyright © 2024 WinDbg.info. All Rights Reserved.
Page generated in 0.0004 seconds.