×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    15

    Talking stack trace tools

    is there any tools can do that thing - trace stack of program on symbian??

    thanks!!

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: stack trace tools

    you can try out the ODD that comes with carbide.c++

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: stack trace tools

    You can also experiment with RThread::StackInfo, and check how a "TInt stackptr((TInt)&stackptr);" relates to iBase and iLimit. Note that when you create a new RThread object, it already represents the current thread (so do not worry about what you should "Open", etc.)

  4. #4
    Nokia Developer Expert
    Join Date
    Jun 2008
    Posts
    333

    Re: stack trace tools

    you can try IMPORT_C TInt StackInfo(TThreadStackInfo &aInfo) const;
    this function belongs to RThread.
    http://www.symbian.com/developer/tec...tackInfo%28%29

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: stack trace tools

    Quote Originally Posted by lming View Post
    you can try IMPORT_C TInt StackInfo(TThreadStackInfo &aInfo) const;
    this function belongs to RThread.
    http://www.symbian.com/developer/tec...tackInfo%28%29
    Sometimes I also forget refreshing the thread prior to posting an answer. However 1 day, 3 hours and 2 minutes seems to be a long time.

  6. #6
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Oulu, Finland
    Posts
    147

    Re: stack trace tools

    I have developed such function for my LogMan logging tool. It prints out the total,used and free stack space.

    Check out the implementation from here.

    Look for RLogMan::StackInfo()

    There is also a way to trace each function enter and exit in real-time with LogMan on device, but I'm working on a tutorial. No changes to code needed, which is amazing. Just found out how to do it. Hopefully I get the tutorial done this week. It requires some tricks to get names of the functions in clear text ;)
    Last edited by GameDude; 2008-11-11 at 21:27.

  7. #7
    Nokia Developer Champion
    Join Date
    Jul 2007
    Location
    ShenZhen, China
    Posts
    4,346

    Re: stack trace tools

    Quote Originally Posted by Mark-07 View Post
    is there any tools can do that thing - trace stack of program on symbian??

    thanks!!
    for good news, it is really exist some tools can trace stack. but bad is that it can work on app panic, and only work on some hardware.

    on s60 2nd, d_exc could help you , u can google and download it.

    on s60 3rd, some phone has contain d_exc.exe, so you can use

    RProcess server;
    TInt r = server.Create(_L("d_exc.exe"), KNullDesC);

    to start the exe.

    but for my test, it is work on N81, N95, N6120c, bot not work N82, N73, E50.

    this link will help you
    ----------------------------
    坚持学习, 坚持编码
    http://www.devdiv.net/
    qxiaoyuan

  8. #8
    Registered User
    Join Date
    Jan 2011
    Posts
    1

    Re: stack trace tools

    @GameDude,

    I found your article while searching for how to get a stack trace - but unfortunately the link that you posted doesn't work any more. Is there some other place to get this code from?

    Thanks, Ashok

Similar Threads

  1. What's this bci thingy on the S60 stack trace?
    By sgouros in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2007-11-08, 19:35
  2. Stack Trace - On device debugging
    By erst in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 0
    Last Post: 2007-06-26, 15:27
  3. Exception stack trace
    By speedyg in forum Mobile Java General
    Replies: 1
    Last Post: 2004-02-21, 14:39
  4. How to display trace stack for nullPointerException?
    By kokohead in forum Mobile Java General
    Replies: 1
    Last Post: 2003-02-22, 20:34
  5. MIDP SDK - exception stack trace
    By matthieu123 in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2002-12-06, 10:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •