Tracing back a function menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Corthezz's Avatar Elite User Authenticator enabled
    Reputation
    386
    Join Date
    Nov 2011
    Posts
    325
    Thanks G/R
    191/98
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Tracing back a function

    Hey there,
    I want to trace back a function call a few levels. Previously it was always enough to set a breakpoint, wait for it to trigger and manually check return addresses pushed to the stack til the point where I want.
    Now I got another function which is called multiple times a second and maybe one of 50 calls is relevant for me. In conclusion its more than annoying checking the registers / stack every time the breakpoint is hit.

    Solving this one was easy by conditional logging (noting down registers if code is executed) and later on pausing the program with a conditional breakpoint whenever I need to.
    Granting I got the program paused at my conditional bp is there any better way to trace back the program multiple calls beside analysing the stack manually?

    Thanks in advance
    Check my blog: https://zzuks.blogspot.com

    Tracing back a function
  2. #2
    namreeb's Avatar Legendary

    Reputation
    668
    Join Date
    Sep 2008
    Posts
    1,029
    Thanks G/R
    8/222
    Trade Feedback
    0 (0%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    What debugger are you using? If it is either Visual Studio or Ollydbg, it will tell you the call stack. You don't have to do it manually.

  3. #3
    Corthezz's Avatar Elite User Authenticator enabled
    Reputation
    386
    Join Date
    Nov 2011
    Posts
    325
    Thanks G/R
    191/98
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by namreeb View Post
    What debugger are you using? If it is either Visual Studio or Ollydbg, it will tell you the call stack. You don't have to do it manually.
    OllyDbg (filler).
    Did some search and came up with this: http://stackoverflow.com/a/24195841

    To clarify: I dont want to find all xrefs to a function but rather the function calls which finally lead to my bp being triggered. I know how to obtain return addresses but I am wondering if there is something like a call trace (In Visual Studio you can for example see the last few calls of the thread which hit the bp - need the same for Olly).

    Also quite useful in this case: http://www.woodmann.com/forum/archiv...p/t-11550.html
    Last edited by Corthezz; 12-16-2015 at 01:23 PM.
    Check my blog: https://zzuks.blogspot.com

  4. #4
    TOM_RUS's Avatar Legendary
    Reputation
    914
    Join Date
    May 2008
    Posts
    699
    Thanks G/R
    0/52
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Pretty sure ollydbg has callstack window at View -> Call stack.

  5. #5
    lolp1's Avatar Site Donator CoreCoins Purchaser
    Reputation
    190
    Join Date
    Feb 2013
    Posts
    210
    Thanks G/R
    43/77
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TOM_RUS View Post
    Pretty sure ollydbg has callstack window at View -> Call stack.
    It does.

  6. #6
    Corthezz's Avatar Elite User Authenticator enabled
    Reputation
    386
    Join Date
    Nov 2011
    Posts
    325
    Thanks G/R
    191/98
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well from time to time I enjoy creating useless threads
    Thanks for the info.
    Check my blog: https://zzuks.blogspot.com

Similar Threads

  1. Dance while you lay on your back
    By KuRIoS in forum World of Warcraft Exploits
    Replies: 14
    Last Post: 07-31-2006, 04:40 AM
  2. Recieve Money Back & Previews
    By Tbone in forum Suggestions
    Replies: 0
    Last Post: 06-20-2006, 03:17 PM
  3. Teliport back up in the air
    By Dregonx in forum World of Warcraft Exploits
    Replies: 3
    Last Post: 06-16-2006, 11:41 PM
  4. [Exploit] Use Hearthstone to get fromm A to B and back to A
    By Matt in forum World of Warcraft Exploits
    Replies: 2
    Last Post: 05-14-2006, 01:02 AM
  5. Instance Death - No run back to corpse
    By Matt in forum World of Warcraft Exploits
    Replies: 2
    Last Post: 04-07-2006, 06:54 AM
All times are GMT -5. The time now is 06:16 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search