Displaying the function stack trace

Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default Re: Displaying the function stack trace

    Guenther Sohler wrote:
    > Nevertheless - in that case, It would be very nice
    > if my program could display the function hierarchy,
    > how my program reached that exit.
    Use abort() instead of exit(). This will leave a core file that
    you can use for post-mortem debugging.
    Bjorn Reese Guest

  2. Similar Questions and Discussions

    1. get the Java stack trace
      hi, is there a way to get the full java stack trace when an exception is occured? May be a cfcatch or cferror variable that contains this stack? Do...
    2. #25823 [Bgs]: stack trace error on java when executing
      ID: 25823 Updated by: sniper@php.net Reported By: wewing at nc dot rr dot com Status: Bogus Bug Type: ...
    3. #25823 [Opn->Bgs]: stack trace error on java when executing
      ID: 25823 Updated by: sniper@php.net Reported By: wewing at nc dot rr dot com -Status: Open +Status: ...
    4. #25823 [NEW]: stack trace error on java when executing
      From: wewing at nc dot rr dot com Operating system: Win2k PHP version: 4.3.4RC1 PHP Bug Type: Servlet related Bug...
    5. getting stack trace from core
      Hi, As far as I know, a core file contains , stack frames of all the lwps when the process crashed. Is there any command which AIX433...
  3. #2

    Default Re: Displaying the function stack trace

    Guenther Sohler wrote:
    [...]
    > Nevertheless - in that case, It would be very nice
    > if my program could display the function hierarchy,
    > how my program reached that exit.
    You may want to have a look at etrace:
    [url]http://ndevilla.free.fr/etrace/index.html[/url]

    This tiny module allows you to trace your function
    calls and print the stack as the program is running.
    It only works with gcc, but on most Unixes though.

    Hope it helps
    --
    Nicolas

    ndevilla@nospam.free.fr Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139