Thread: get stack strace

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    get stack strace

    Hello everyone,


    If I only know the binary address of an instruction of a current process, for example, address 0x12345678, is it possible to print stack trace from the root caller to the specific address using WinDbg or some other tools?


    thanks in advance,
    George

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by George2 View Post
    Hello everyone,


    If I only know the binary address of an instruction of a current process, for example, address 0x12345678, is it possible to print stack trace from the root caller to the specific address using WinDbg or some other tools?


    thanks in advance,
    George
    WinDbg itself has a way of printing the callstack of the current process. The command "k" will show the current threads stack. You can add more commands to "k", e.g. "kP" will give you the full parameters of the call-stack. Check out the built-in help, it's pretty good.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. stack and pointer problem
    By ramaadhitia in forum C Programming
    Replies: 2
    Last Post: 09-11-2006, 11:41 PM
  2. Question about a stack using array of pointers
    By Ricochet in forum C++ Programming
    Replies: 6
    Last Post: 11-17-2003, 10:12 PM
  3. error trying to compile stack program
    By KristTlove in forum C++ Programming
    Replies: 2
    Last Post: 11-03-2003, 06:27 PM
  4. What am I doing wrong, stack?
    By TeenyTig in forum C Programming
    Replies: 2
    Last Post: 05-27-2002, 02:12 PM
  5. Stack Program Here
    By Troll_King in forum C Programming
    Replies: 7
    Last Post: 10-15-2001, 05:36 PM