On Sat, Jan 17, 2009 at 4:23 PM, Satya Prasad
<[email protected]> wrote:
> Apart from writing debug and statements in constructors is there any way by
> which we can trace the function call stack at any depth?
>
> The issue that we always face is that when program crashes (Web Server
> running on Linux) we have no idea where it crashes and we have to do the
> hard way of debugging.
>
> Is there any library / extra code that we can include and that can output
> the function flow in a program given a scenario.
>
> Sorry I tired a lot of programs but without extra debugging (followed by
> compilation) we are not sure where the code flows. If it gives us the line
> number that would be more perfect.
>
> Thanks in advance
>
> Regards,
> Prakash
>

Hi

Compile your code using the -g flag and then invoke gdb over the dump.
Would you not get the stack trace or did I miss something ??

Thanks!! and have a nice day!!
Jaspreet

Reply via email to